Move Power Loss Recovery check

This commit is contained in:
Scott Lahteine
2020-04-19 01:11:56 -05:00
parent 2ae00db43e
commit d96c769fd6
3 changed files with 9 additions and 8 deletions

View File

@@ -408,8 +408,13 @@ void CardReader::manage_media() {
ui.media_changed(old_stat, stat); // Update the UI
if (stat && old_stat == 2) // First mount?
beginautostart(); // Look for autostart files soon
if (stat && old_stat == 2) { // First mount?
#if ENABLED(POWER_LOSS_RECOVERY)
recovery.check();
#else
beginautostart(); // Look for autostart files soon
#endif
}
}
}