mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 20:18:52 +00:00
M78 now allows stats reset using the S78 argument
This commit is contained in:
parent
b660f1bdb8
commit
a79267217b
@ -4271,7 +4271,10 @@ inline void gcode_M77() {
|
|||||||
* M78: Show print statistics
|
* M78: Show print statistics
|
||||||
*/
|
*/
|
||||||
inline void gcode_M78() {
|
inline void gcode_M78() {
|
||||||
print_job_timer.showStats();
|
// "M78 S78" will reset the statistics
|
||||||
|
if (code_seen('S') && code_value_short() == 78)
|
||||||
|
print_job_timer.initStats();
|
||||||
|
else print_job_timer.showStats();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user