diff --git a/octoprint_klipper/static/js/klipper_pid_tuning.js b/octoprint_klipper/static/js/klipper_pid_tuning.js index bc7b002..b7a88b8 100644 --- a/octoprint_klipper/static/js/klipper_pid_tuning.js +++ b/octoprint_klipper/static/js/klipper_pid_tuning.js @@ -2,16 +2,16 @@ $(function() { function KlipperPidTuningViewModel(parameters) { var self = this; - self.heaterIndex = ko.observable(); + self.heaterName = ko.observable(); self.targetTemperature = ko.observable(); self.onStartup = function() { - self.heaterIndex(0); + self.heaterName(""); self.targetTemperature(190); } self.startTuning = function() { - OctoPrint.control.sendGcode("M303 E" + self.heaterIndex() + " S" + self.targetTemperature()); + OctoPrint.control.sendGcode("PID_CALIBRATE HEATER=" + self.heaterName() + " TARGET=" + self.targetTemperature()); } }