mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 09:17:56 +01:00
Stop sending print parts when print is stopped
This commit is contained in:
parent
399c55f84f
commit
f84b1639d5
@ -151,9 +151,12 @@ function Printer() {
|
|||||||
this.gcode = [];
|
this.gcode = [];
|
||||||
//self.targetTemperature = settings["printer.temperature"]; // slight hack
|
//self.targetTemperature = settings["printer.temperature"]; // slight hack
|
||||||
} else {
|
} else {
|
||||||
|
// only if the state hasn't bin changed (by for example pressing stop) we send more gcode
|
||||||
|
if(self.state == Printer.STATE_PRINTING) {
|
||||||
console.log("sending next part");
|
console.log("sending next part");
|
||||||
self.sendPrintPart(sendIndex + sendLength, sendLength);
|
self.sendPrintPart(sendIndex + sendLength, sendLength);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).fail(function() {
|
}).fail(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user