add print time and material to N2 profile
This commit is contained in:
parent
292e4c9737
commit
2b53921744
2 changed files with 9 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -30,7 +30,10 @@
|
|||
"M140 S0",
|
||||
"G1 X20 Y20 F6000",
|
||||
"G1 X0 Y0",
|
||||
"M84"
|
||||
"M84",
|
||||
";Print Time: {time}",
|
||||
";Material#1 Used: {material}",
|
||||
";Material#2 Used: 0.0"
|
||||
],
|
||||
"cmd":{
|
||||
"fan_power": "M106 S{fan_speed}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue