Move Power Loss Recovery check

This commit is contained in:
Scott Lahteine committed 2020-04-21 15:27:53 -05:00
1 parent 2ae00db43e
commit d96c769fd6
3 files changed
+9 -8

No files matched your search

+7 -2
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
}
}
}