|
@@ -128,7 +128,7 @@ void PrintCounter::tick() {
|
128
|
128
|
}
|
129
|
129
|
|
130
|
130
|
// Trying to get the amount of calculations down to the bare min
|
131
|
|
- const static uint16_t j = this->saveInterval * 1000;
|
|
131
|
+ const static uint32_t j = this->saveInterval * 1000;
|
132
|
132
|
|
133
|
133
|
if (now - eeprom_before >= j) {
|
134
|
134
|
eeprom_before = now;
|
|
@@ -164,6 +164,7 @@ bool PrintCounter::stop() {
|
164
|
164
|
this->data.finishedPrints++;
|
165
|
165
|
this->data.printTime += this->deltaDuration();
|
166
|
166
|
this->saveStats();
|
|
167
|
+ return true;
|
167
|
168
|
}
|
168
|
169
|
else return false;
|
169
|
170
|
}
|