0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-24 01:57:56 +01:00

Send total number of lines to be printed along with every gcode chunk.

This commit is contained in:
Wouter R 2016-02-13 23:45:48 +01:00
parent a9f7fe1c78
commit 4f5e1143b4

View File

@ -177,7 +177,7 @@ function Printer() {
}
var gcodePart = this.gcode.slice(sendIndex, sendIndex+sendLength);
var postData = { gcode: gcodePart.join("\n"), first: firstOne, start: start};
var postData = { gcode: gcodePart.join("\n"), total_lines: this.gcode.length, first: firstOne, start: start};
var self = this;
if (communicateWithWifibox) {
$.ajax({