add print time and material to N2 profile

This commit is contained in:
Stewart Allen 2017-12-22 09:41:38 -05:00
commit 2b53921744
2 changed files with 9 additions and 2 deletions

View file

@ -500,11 +500,15 @@ var gs_kiri_fdm = exports;
layer++;
}
consts.material = UTIL.round(emitted,2);
consts.time = UTIL.round(time,2);
append("; --- shutdown ---");
for (var i=0; i<device.gcodePost.length; i++) {
append(constReplace(device.gcodePost[i], consts));
}
append("; --- filament used: "+UTIL.round(emitted,decimals)+"mm ---");
append("; --- filament used: " +consts.material + "mm ---");
append("; --- print time: " + consts.time + "s ---");
// force emit of buffer
append();