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 {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user