0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 09:17:56 +01:00

Bugfix for heatup change.

This commit is contained in:
Wouter R 2013-09-27 16:04:56 +02:00
parent f0df41bc89
commit a45d1ad8ed

View File

@ -25,7 +25,7 @@ $(function() {
} else {
wifiboxURL = "http://" + window.location.host + "/cgi-bin/d3dapi";
}
if (!communicateWithWifibox) {
sendPrintCommands = false; // 'communicateWithWifibox = false' implies this
}
@ -45,10 +45,10 @@ $(function() {
printer.init();
$(document).on(Printer.UPDATE,update);
settingsWindow.init(wifiboxURL);
$(document).on(SettingsWindow.SETTINGS_LOADED,settingsLoaded);
if(debugMode) {
console.log("debug mode is true");
$("body").css("overflow", "auto");
@ -79,15 +79,15 @@ $(function() {
}, 1000);
//*/
}
})
function settingsLoaded() {
console.log("settingsLoaded");
console.log("autoWarmUp: ",settings["printer.autoWarmUp"]);
if(settings["printer.autoWarmUp"]) {
console.log("autoHeatup: ",settings["printer.heatup.enabled"]);
if(settings["printer.heatup.enabled"]) {
if(firstTimesettingsLoaded) {
printer.preheat();
firstTimesettingsLoaded = false;
}
}
}
}