Use static classes for job timers (#9938)
This commit is contained in:
@ -730,11 +730,7 @@ void setup() {
|
||||
// Load data from EEPROM if available (or use defaults)
|
||||
// This also updates variables in the planner, elsewhere
|
||||
(void)settings.load();
|
||||
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
print_job_timer.init();
|
||||
#endif
|
||||
|
||||
|
||||
#if HAS_M206_COMMAND
|
||||
// Initialize current position based on home_offset
|
||||
COPY(current_position, home_offset);
|
||||
@ -747,6 +743,8 @@ void setup() {
|
||||
|
||||
thermalManager.init(); // Initialize temperature loop
|
||||
|
||||
print_job_timer.init(); // Initial setup of print job timer
|
||||
|
||||
stepper.init(); // Initialize stepper, this enables interrupts!
|
||||
|
||||
#if HAS_SERVOS
|
||||
|
Reference in New Issue
Block a user