M78 now allows stats reset using the S78 argument

master
João Brázio 8 years ago committed by Scott Lahteine
parent b660f1bdb8
commit a79267217b

@ -4271,7 +4271,10 @@ inline void gcode_M77() {
* M78: Show print statistics
*/
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

Loading…
Cancel
Save