0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-06-25 20:51:22 +02:00

Prevent preheat while buffering/printing/stopping

This commit is contained in:
peteruithoven 2013-10-23 12:45:41 +02:00
parent f7bcd6e7c4
commit cc2bcf962c

View File

@ -70,6 +70,13 @@ function Printer() {
this.preheat = function() {
console.log("Printer:preheat");
if( this.state == Printer.BUFFERING_STATE ||
this.state == Printer.PRINTING_STATE ||
this.state == Printer.STOPPING_STATE) {
return;
}
var self = this;
if (communicateWithWifibox) {
$.ajax({