1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00

Call first_load from manage_media

This commit is contained in:
Scott Lahteine 2020-04-14 17:33:34 -05:00
parent d96c769fd6
commit 5de87361e9

View File

@ -368,9 +368,6 @@ void CardReader::mount() {
else { else {
flag.mounted = true; flag.mounted = true;
SERIAL_ECHO_MSG(STR_SD_CARD_OK); SERIAL_ECHO_MSG(STR_SD_CARD_OK);
#if ENABLED(SDCARD_EEPROM_EMULATION)
settings.first_load();
#endif
} }
cdroot(); cdroot();
@ -408,12 +405,17 @@ void CardReader::manage_media() {
ui.media_changed(old_stat, stat); // Update the UI ui.media_changed(old_stat, stat); // Update the UI
if (stat && old_stat == 2) { // First mount? if (stat) {
#if ENABLED(POWER_LOSS_RECOVERY) #if ENABLED(SDCARD_EEPROM_EMULATION)
recovery.check(); settings.first_load();
#else
beginautostart(); // Look for autostart files soon
#endif #endif
if (old_stat == 2) { // First mount?
#if ENABLED(POWER_LOSS_RECOVERY)
recovery.check();
#else
beginautostart(); // Look for autostart files soon
#endif
}
} }
} }
} }