From 979403826a9f5472db466df007a0162423254d72 Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Wed, 18 Sep 2013 19:20:44 +0200 Subject: [PATCH] another hack to show targetTemp --- js/Printer.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/Printer.js b/js/Printer.js index 762ce46..1bed5b8 100644 --- a/js/Printer.js +++ b/js/Printer.js @@ -203,10 +203,11 @@ function Printer() { //console.log("temp: ",response.data.hotend+"/"+response.data.hotend_target+" ("+response.data.last_mod+")"); self.temperature = data.data.hotend; if(data.data.hotend_target != undefined) { - if(self.@@@@) - self.targetTemperature = data.data.hotend_target; - - self.targetTemperature = settings["printer.temperature"]; // hack + if(state == PRINTING_STATE) { // HACK + self.targetTemperature = settings["printer.temperature"]; + } else { + self.targetTemperature = data.data.hotend_target; + } } self.alive = (data.data.last_mod < self.maxTempLastMod); } else {