From 4f16e40d292ca45a94ee3c87130d037b9c23ae0b Mon Sep 17 00:00:00 2001 From: Martin Muehlhaeuser Date: Mon, 26 Mar 2018 15:54:58 +0000 Subject: [PATCH] Adapt PID Tuning dialog to now PID_CALIBRATE cmd. --- octoprint_klipper/static/js/klipper_pid_tuning.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()); } }