Browse Source

Bugfix: Multiple M77 no longer increment the print counter

João Brázio 8 years ago
parent
commit
b660f1bdb8
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Marlin/printcounter.cpp

+ 2
- 0
Marlin/printcounter.cpp View File

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

Loading…
Cancel
Save