|
@@ -54,24 +54,24 @@ void GcodeSuite::M77() {
|
54
|
54
|
#if ENABLED(PRINTCOUNTER)
|
55
|
55
|
|
56
|
56
|
/**
|
57
|
|
- * M78: Show print statistics
|
58
|
|
- */
|
|
57
|
+ * M78: Show print statistics
|
|
58
|
+ */
|
59
|
59
|
void GcodeSuite::M78() {
|
60
|
60
|
if (parser.intval('S') == 78) { // "M78 S78" will reset the statistics
|
61
|
|
- print_job_timer.initStats();
|
62
|
|
- ui.reset_status();
|
|
61
|
+ print_job_timer.initStats();
|
|
62
|
+ ui.reset_status();
|
63
|
63
|
return;
|
64
|
|
- }
|
|
64
|
+ }
|
65
|
65
|
|
66
|
|
- #if HAS_SERVICE_INTERVALS
|
|
66
|
+ #if HAS_SERVICE_INTERVALS
|
67
|
67
|
if (parser.seenval('R')) {
|
68
|
|
- print_job_timer.resetServiceInterval(parser.value_int());
|
69
|
|
- ui.reset_status();
|
|
68
|
+ print_job_timer.resetServiceInterval(parser.value_int());
|
|
69
|
+ ui.reset_status();
|
70
|
70
|
return;
|
71
|
|
- }
|
72
|
|
- #endif
|
|
71
|
+ }
|
|
72
|
+ #endif
|
73
|
73
|
|
74
|
|
- print_job_timer.showStats();
|
|
74
|
+ print_job_timer.showStats();
|
75
|
75
|
}
|
76
|
76
|
|
77
|
77
|
#endif // PRINTCOUNTER
|