Followup for #3813
This commit is contained in:
@ -128,7 +128,7 @@ void PrintCounter::tick() {
|
||||
}
|
||||
|
||||
// Trying to get the amount of calculations down to the bare min
|
||||
const static uint16_t j = this->saveInterval * 1000;
|
||||
const static uint32_t j = this->saveInterval * 1000;
|
||||
|
||||
if (now - eeprom_before >= j) {
|
||||
eeprom_before = now;
|
||||
@ -164,6 +164,7 @@ bool PrintCounter::stop() {
|
||||
this->data.finishedPrints++;
|
||||
this->data.printTime += this->deltaDuration();
|
||||
this->saveStats();
|
||||
return true;
|
||||
}
|
||||
else return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user