Bugfix: Multiple M77 no longer increment the print counter
This commit is contained in:
parent
a713043acd
commit
b660f1bdb8
|
@ -149,7 +149,9 @@ void PrintCounter::stop() {
|
||||||
PrintCounter::debug(PSTR("stop"));
|
PrintCounter::debug(PSTR("stop"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (!this->isRunning()) return;
|
||||||
super::stop();
|
super::stop();
|
||||||
|
|
||||||
this->data.finishedPrints++;
|
this->data.finishedPrints++;
|
||||||
this->data.printTime += this->deltaDuration();
|
this->data.printTime += this->deltaDuration();
|
||||||
this->saveStats();
|
this->saveStats();
|
||||||
|
|
Loading…
Reference in a new issue