Browse Source

M78 now allows stats reset using the S78 argument

pull/1/head
João Brázio 9 years ago
committed by Scott Lahteine
parent
commit
a79267217b
  1. 5
      Marlin/Marlin_main.cpp

5
Marlin/Marlin_main.cpp

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

Loading…
Cancel
Save