mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-12-22 05:03:48 +01:00
Include sequence numbers in console.log message when sending print.
This commit is contained in:
parent
578fba4f63
commit
c742740078
@ -174,16 +174,6 @@ function Printer() {
|
||||
completed = true;
|
||||
}
|
||||
|
||||
|
||||
/* inform user what's going on */
|
||||
|
||||
var lessThanMaxText = sendLength < Printer.MAX_LINES_PER_POST ? " (less than max of " + Printer.MAX_LINES_PER_POST + ")" : "";
|
||||
console.log("Printer:sendPrintPart: sendIndex=" + sendIndex + "/" + this.gcode.length +
|
||||
", sendLength=" + sendLength + lessThanMaxText);
|
||||
|
||||
var sendPercentage = Math.round(sendIndex / this.gcode.length * 100);
|
||||
message.set("Sending doodle to printer: " + sendPercentage + "%", Message.NOTICE, false, true);
|
||||
|
||||
|
||||
/* prepare post data */
|
||||
|
||||
@ -198,6 +188,17 @@ function Printer() {
|
||||
};
|
||||
|
||||
|
||||
/* inform user what's going on */
|
||||
|
||||
var lessThanMaxText = completed ? " (last one, max=" + Printer.MAX_LINES_PER_POST + ")" : "";
|
||||
console.log("Printer:sendPrintPart: sendIndex=" + sendIndex + "/" + this.gcode.length +
|
||||
", sendLength=" + sendLength + lessThanMaxText +
|
||||
", sequence numbers: " + seqNum + "/" + this.gcodeNumChunks);
|
||||
|
||||
var sendPercentage = Math.round(sendIndex / this.gcode.length * 100);
|
||||
message.set("Sending doodle to printer: " + sendPercentage + "%", Message.NOTICE, false, true);
|
||||
|
||||
|
||||
/* send data */
|
||||
|
||||
var self = this;
|
||||
|
Loading…
Reference in New Issue
Block a user