mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 01:07:56 +01:00
Only send a start argument with api:printer/print on the first send
This commit is contained in:
parent
af325f4bd3
commit
399c55f84f
@ -122,7 +122,7 @@ function Printer() {
|
|||||||
console.log("Printer:sendPrintPart sendIndex: " + sendIndex + "/" + this.gcode.length + ", sendLength: " + sendLength);
|
console.log("Printer:sendPrintPart sendIndex: " + sendIndex + "/" + this.gcode.length + ", sendLength: " + sendLength);
|
||||||
|
|
||||||
var firstOne = (sendIndex == 0)? true : false;
|
var firstOne = (sendIndex == 0)? true : false;
|
||||||
var start = true; // start printing right away
|
var start = firstOne; // start printing right away
|
||||||
|
|
||||||
var completed = false;
|
var completed = false;
|
||||||
if (this.gcode.length < (sendIndex + sendLength)) {
|
if (this.gcode.length < (sendIndex + sendLength)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user