Set LCD status for EEPROM errors (#16977)

This commit is contained in:
InsanityAutomation
2020-02-26 04:04:02 -05:00
committed by GitHub
parent e78f607ef3
commit cdcd45d651
5 changed files with 30 additions and 16 deletions

View File

@@ -995,32 +995,28 @@ void setup() {
ui.show_bootscreen();
#endif
#if ENABLED(SDSUPPORT)
card.mount(); // Mount the SD card before settings.first_load
#endif
ui.reset_status(); // Load welcome message early. (Retained if no errors exist.)
// Load data from EEPROM if available (or use defaults)
// This also updates variables in the planner, elsewhere
settings.first_load();
#if ENABLED(SDSUPPORT)
card.mount(); // Mount the SD card before settings.first_load
#endif
// Load data from EEPROM if available (or use defaults)
settings.first_load(); // This also updates variables in the planner, elsewhere
#if ENABLED(TOUCH_BUTTONS)
touch.init();
#endif
#if HAS_M206_COMMAND
// Initialize current position based on home_offset
#if HAS_M206_COMMAND // Initialize current position based on home_offset
current_position += home_offset;
#endif
// Vital to init stepper/planner equivalent for current_position
sync_plan_position();
sync_plan_position(); // Vital to init stepper/planner equivalent for current_position
thermalManager.init(); // Initialize temperature loop
print_job_timer.init(); // Initial setup of print job timer
ui.reset_status(); // Print startup message after print statistics are loaded
endstops.init(); // Init endstops and pullups
stepper.init(); // Init stepper. This enables interrupts!
@@ -1175,6 +1171,10 @@ void setup() {
#if ENABLED(PRUSA_MMU2)
mmu2.init();
#endif
#if HAS_SERVICE_INTERVALS
ui.reset_status(true); // Show service messages or keep current status
#endif
}
/**