Init print_job_timer in setup() instead of "early" (#9937)
This commit is contained in:
committed by
Scott Lahteine
parent
beeed580b8
commit
025118da3e
@ -28,10 +28,6 @@
|
||||
|
||||
#include "../Marlin.h"
|
||||
|
||||
PrintCounter::PrintCounter(): super() {
|
||||
this->loadStats();
|
||||
}
|
||||
|
||||
millis_t PrintCounter::deltaDuration() {
|
||||
#if ENABLED(DEBUG_PRINTCOUNTER)
|
||||
PrintCounter::debug(PSTR("deltaDuration"));
|
||||
|
@ -99,10 +99,14 @@ class PrintCounter: public Stopwatch {
|
||||
millis_t deltaDuration();
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* @brief Class constructor
|
||||
* @brief Initialize the print counter
|
||||
*/
|
||||
PrintCounter();
|
||||
inline void init() {
|
||||
super::init();
|
||||
this->loadStats();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Checks if Print Statistics has been loaded
|
||||
|
Reference in New Issue
Block a user