0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-12-22 21:23:48 +01:00

another hack to show targetTemp

This commit is contained in:
peteruithoven 2013-09-18 19:20:44 +02:00
parent a692976be6
commit 979403826a

View File

@ -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 {