@ -1161,10 +1161,6 @@ void setup() {
SETUP_RUN(est_init());
#endif
#if ENABLED(POWER_LOSS_RECOVERY)
SETUP_RUN(recovery.check());
#if ENABLED(USE_WATCHDOG)
SETUP_RUN(watchdog_init()); // Reinit watchdog after HAL_get_reset_source call
@ -100,10 +100,10 @@ void PrintJobRecovery::changed() {
* If a saved state exists send 'M1000 S' to initiate job recovery.
*/
void PrintJobRecovery::check() {
if (!card.isMounted()) card.mount();
//if (!card.isMounted()) card.mount();
if (card.isMounted()) {
load();
if (!valid()) return purge();
if (!valid()) return cancel();
queue.inject_P(PSTR("M1000 S"));
}
@ -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?
recovery.check();
#else