M78 now allows stats reset using the S78 argument

This commit is contained in:
João Brázio 2016-05-14 22:02:30 +01:00 committed by Scott Lahteine
parent b660f1bdb8
commit a79267217b

View File

@ -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