|
|
@ -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,7 +405,11 @@ 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(SDCARD_EEPROM_EMULATION)
|
|
|
|
|
|
|
|
settings.first_load();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if (old_stat == 2) { // First mount?
|
|
|
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
|
|
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
|
|
|
recovery.check();
|
|
|
|
recovery.check();
|
|
|
|
#else
|
|
|
|
#else
|
|
|
@ -416,6 +417,7 @@ void CardReader::manage_media() {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CardReader::release() {
|
|
|
|
void CardReader::release() {
|
|
|
|