mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 09:17:56 +01:00
Prevent preheat while buffering/printing/stopping
This commit is contained in:
parent
f7bcd6e7c4
commit
cc2bcf962c
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user