Move Power Loss Recovery check
This commit is contained in:
1 parent
2ae00db43e
commit
d96c769fd6
3 files changed
+9
-8
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user