Selaa lähdekoodia

Bugfix: Multiple M77 no longer increment the print counter

João Brázio 8 vuotta sitten
vanhempi
commit
b660f1bdb8
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2
    0
      Marlin/printcounter.cpp

+ 2
- 0
Marlin/printcounter.cpp Näytä tiedosto

@@ -149,7 +149,9 @@ void PrintCounter::stop() {
149 149
     PrintCounter::debug(PSTR("stop"));
150 150
   #endif
151 151
 
152
+  if (!this->isRunning()) return;
152 153
   super::stop();
154
+
153 155
   this->data.finishedPrints++;
154 156
   this->data.printTime += this->deltaDuration();
155 157
   this->saveStats();

Loading…
Peruuta
Tallenna