🎨 Misc. code cleanup
This commit is contained in:
@ -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();
|
||||
return;
|
||||
}
|
||||
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
if (parser.seenval('R')) {
|
||||
print_job_timer.resetServiceInterval(parser.value_int());
|
||||
print_job_timer.initStats();
|
||||
ui.reset_status();
|
||||
return;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
print_job_timer.showStats();
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
if (parser.seenval('R')) {
|
||||
print_job_timer.resetServiceInterval(parser.value_int());
|
||||
ui.reset_status();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
print_job_timer.showStats();
|
||||
}
|
||||
|
||||
#endif // PRINTCOUNTER
|
||||
|
Reference in New Issue
Block a user