Adapt PID Tuning dialog to now PID_CALIBRATE cmd.

This commit is contained in:
Martin Muehlhaeuser 2018-03-26 15:54:58 +00:00
parent 4afbf61223
commit 4f16e40d29
1 changed files with 3 additions and 3 deletions

View File

@ -2,16 +2,16 @@ $(function() {
function KlipperPidTuningViewModel(parameters) { function KlipperPidTuningViewModel(parameters) {
var self = this; var self = this;
self.heaterIndex = ko.observable(); self.heaterName = ko.observable();
self.targetTemperature = ko.observable(); self.targetTemperature = ko.observable();
self.onStartup = function() { self.onStartup = function() {
self.heaterIndex(0); self.heaterName("");
self.targetTemperature(190); self.targetTemperature(190);
} }
self.startTuning = function() { self.startTuning = function() {
OctoPrint.control.sendGcode("M303 E" + self.heaterIndex() + " S" + self.targetTemperature()); OctoPrint.control.sendGcode("PID_CALIBRATE HEATER=" + self.heaterName() + " TARGET=" + self.targetTemperature());
} }
} }