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:
parent
f0df41bc89
commit
a45d1ad8ed
14
js/main.js
14
js/main.js
@ -25,7 +25,7 @@ $(function() {
|
|||||||
} else {
|
} else {
|
||||||
wifiboxURL = "http://" + window.location.host + "/cgi-bin/d3dapi";
|
wifiboxURL = "http://" + window.location.host + "/cgi-bin/d3dapi";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!communicateWithWifibox) {
|
if (!communicateWithWifibox) {
|
||||||
sendPrintCommands = false; // 'communicateWithWifibox = false' implies this
|
sendPrintCommands = false; // 'communicateWithWifibox = false' implies this
|
||||||
}
|
}
|
||||||
@ -45,10 +45,10 @@ $(function() {
|
|||||||
|
|
||||||
printer.init();
|
printer.init();
|
||||||
$(document).on(Printer.UPDATE,update);
|
$(document).on(Printer.UPDATE,update);
|
||||||
|
|
||||||
settingsWindow.init(wifiboxURL);
|
settingsWindow.init(wifiboxURL);
|
||||||
$(document).on(SettingsWindow.SETTINGS_LOADED,settingsLoaded);
|
$(document).on(SettingsWindow.SETTINGS_LOADED,settingsLoaded);
|
||||||
|
|
||||||
if(debugMode) {
|
if(debugMode) {
|
||||||
console.log("debug mode is true");
|
console.log("debug mode is true");
|
||||||
$("body").css("overflow", "auto");
|
$("body").css("overflow", "auto");
|
||||||
@ -79,15 +79,15 @@ $(function() {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
//*/
|
//*/
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
function settingsLoaded() {
|
function settingsLoaded() {
|
||||||
console.log("settingsLoaded");
|
console.log("settingsLoaded");
|
||||||
console.log("autoWarmUp: ",settings["printer.autoWarmUp"]);
|
console.log("autoHeatup: ",settings["printer.heatup.enabled"]);
|
||||||
if(settings["printer.autoWarmUp"]) {
|
if(settings["printer.heatup.enabled"]) {
|
||||||
if(firstTimesettingsLoaded) {
|
if(firstTimesettingsLoaded) {
|
||||||
printer.preheat();
|
printer.preheat();
|
||||||
firstTimesettingsLoaded = false;
|
firstTimesettingsLoaded = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user