Browse Source

M78 now allows stats reset using the S78 argument

João Brázio 9 years ago
parent
commit
a79267217b
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      Marlin/Marlin_main.cpp

+ 4
- 1
Marlin/Marlin_main.cpp View File

@@ -4271,7 +4271,10 @@ inline void gcode_M77() {
4271 4271
    * M78: Show print statistics
4272 4272
    */
4273 4273
   inline void gcode_M78() {
4274
-    print_job_timer.showStats();
4274
+    // "M78 S78" will reset the statistics
4275
+    if (code_seen('S') && code_value_short() == 78)
4276
+      print_job_timer.initStats();
4277
+    else print_job_timer.showStats();
4275 4278
   }
4276 4279
 #endif
4277 4280
 

Loading…
Cancel
Save