|
|
@ -54,24 +54,24 @@ void GcodeSuite::M77() { |
|
|
|
#if ENABLED(PRINTCOUNTER) |
|
|
|
|
|
|
|
/**
|
|
|
|
* M78: Show print statistics |
|
|
|
*/ |
|
|
|
* M78: Show print statistics |
|
|
|
*/ |
|
|
|
void GcodeSuite::M78() { |
|
|
|
if (parser.intval('S') == 78) { // "M78 S78" will reset the statistics
|
|
|
|
print_job_timer.initStats(); |
|
|
|
ui.reset_status(); |
|
|
|
print_job_timer.initStats(); |
|
|
|
ui.reset_status(); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#if HAS_SERVICE_INTERVALS |
|
|
|
#if HAS_SERVICE_INTERVALS |
|
|
|
if (parser.seenval('R')) { |
|
|
|
print_job_timer.resetServiceInterval(parser.value_int()); |
|
|
|
ui.reset_status(); |
|
|
|
print_job_timer.resetServiceInterval(parser.value_int()); |
|
|
|
ui.reset_status(); |
|
|
|
return; |
|
|
|
} |
|
|
|
#endif |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
print_job_timer.showStats(); |
|
|
|
print_job_timer.showStats(); |
|
|
|
} |
|
|
|
|
|
|
|
#endif // PRINTCOUNTER
|
|
|
|