Use static classes for job timers (#9938)

This commit is contained in:
Scott Lahteine
2018-03-04 21:23:43 -06:00
committed by GitHub
parent 930720bbbb
commit 36262a0479
5 changed files with 171 additions and 166 deletions

View File

@ -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