Parcourir la source

M78 now allows stats reset using the S78 argument

João Brázio il y a 9 ans
Parent
révision
a79267217b
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4
    1
      Marlin/Marlin_main.cpp

+ 4
- 1
Marlin/Marlin_main.cpp Voir le fichier

4271
    * M78: Show print statistics
4271
    * M78: Show print statistics
4272
    */
4272
    */
4273
   inline void gcode_M78() {
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
 #endif
4279
 #endif
4277
 
4280
 

Chargement…
Annuler
Enregistrer