|
@@ -995,32 +995,28 @@ void setup() {
|
995
|
995
|
ui.show_bootscreen();
|
996
|
996
|
#endif
|
997
|
997
|
|
|
998
|
+ ui.reset_status(); // Load welcome message early. (Retained if no errors exist.)
|
|
999
|
+
|
998
|
1000
|
#if ENABLED(SDSUPPORT)
|
999
|
|
- card.mount(); // Mount the SD card before settings.first_load
|
|
1001
|
+ card.mount(); // Mount the SD card before settings.first_load
|
1000
|
1002
|
#endif
|
1001
|
|
-
|
1002
|
|
- // Load data from EEPROM if available (or use defaults)
|
1003
|
|
- // This also updates variables in the planner, elsewhere
|
1004
|
|
- settings.first_load();
|
|
1003
|
+ // Load data from EEPROM if available (or use defaults)
|
|
1004
|
+ settings.first_load(); // This also updates variables in the planner, elsewhere
|
1005
|
1005
|
|
1006
|
1006
|
#if ENABLED(TOUCH_BUTTONS)
|
1007
|
1007
|
touch.init();
|
1008
|
1008
|
#endif
|
1009
|
1009
|
|
1010
|
|
- #if HAS_M206_COMMAND
|
1011
|
|
- // Initialize current position based on home_offset
|
|
1010
|
+ #if HAS_M206_COMMAND // Initialize current position based on home_offset
|
1012
|
1011
|
current_position += home_offset;
|
1013
|
1012
|
#endif
|
1014
|
1013
|
|
1015
|
|
- // Vital to init stepper/planner equivalent for current_position
|
1016
|
|
- sync_plan_position();
|
|
1014
|
+ sync_plan_position(); // Vital to init stepper/planner equivalent for current_position
|
1017
|
1015
|
|
1018
|
1016
|
thermalManager.init(); // Initialize temperature loop
|
1019
|
1017
|
|
1020
|
1018
|
print_job_timer.init(); // Initial setup of print job timer
|
1021
|
1019
|
|
1022
|
|
- ui.reset_status(); // Print startup message after print statistics are loaded
|
1023
|
|
-
|
1024
|
1020
|
endstops.init(); // Init endstops and pullups
|
1025
|
1021
|
|
1026
|
1022
|
stepper.init(); // Init stepper. This enables interrupts!
|
|
@@ -1175,6 +1171,10 @@ void setup() {
|
1175
|
1171
|
#if ENABLED(PRUSA_MMU2)
|
1176
|
1172
|
mmu2.init();
|
1177
|
1173
|
#endif
|
|
1174
|
+
|
|
1175
|
+ #if HAS_SERVICE_INTERVALS
|
|
1176
|
+ ui.reset_status(true); // Show service messages or keep current status
|
|
1177
|
+ #endif
|
1178
|
1178
|
}
|
1179
|
1179
|
|
1180
|
1180
|
/**
|