Sort out settings.load with SD EEPROM emulation (#14458)
This commit is contained in:
committed by
Scott Lahteine
parent
c9be936d4a
commit
108d0df565
@ -353,9 +353,6 @@ void CardReader::initsd() {
|
||||
else {
|
||||
flag.detected = true;
|
||||
SERIAL_ECHO_MSG(MSG_SD_CARD_OK);
|
||||
#if ENABLED(EEPROM_SETTINGS) && DISABLED(FLASH_EEPROM_EMULATION)
|
||||
(void)settings.load();
|
||||
#endif
|
||||
}
|
||||
setroot();
|
||||
|
||||
@ -561,11 +558,6 @@ void CardReader::checkautostart() {
|
||||
|
||||
if (!isDetected()) initsd();
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS) && DISABLED(FLASH_EEPROM_EMULATION)
|
||||
SERIAL_ECHOLNPGM("Loading settings from SD");
|
||||
(void)settings.load();
|
||||
#endif
|
||||
|
||||
if (isDetected()
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
&& !recovery.valid() // Don't run auto#.g when a resume file exists
|
||||
|
Reference in New Issue
Block a user