0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-04 19:33:22 +01: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() { this.preheat = function() {
console.log("Printer:preheat"); console.log("Printer:preheat");
if( this.state == Printer.BUFFERING_STATE ||
this.state == Printer.PRINTING_STATE ||
this.state == Printer.STOPPING_STATE) {
return;
}
var self = this; var self = this;
if (communicateWithWifibox) { if (communicateWithWifibox) {
$.ajax({ $.ajax({