|
|
@ -100,14 +100,12 @@ void PrintJobRecovery::changed() {
|
|
|
|
* If a saved state exists send 'M1000 S' to initiate job recovery.
|
|
|
|
* If a saved state exists send 'M1000 S' to initiate job recovery.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void PrintJobRecovery::check() {
|
|
|
|
void PrintJobRecovery::check() {
|
|
|
|
if (enabled) {
|
|
|
|
//if (!card.isMounted()) card.mount();
|
|
|
|
if (!card.isMounted()) card.mount();
|
|
|
|
|
|
|
|
if (card.isMounted()) {
|
|
|
|
if (card.isMounted()) {
|
|
|
|
load();
|
|
|
|
load();
|
|
|
|
if (!valid()) return purge();
|
|
|
|
if (!valid()) return purge();
|
|
|
|
queue.inject_P(PSTR("M1000 S"));
|
|
|
|
queue.inject_P(PSTR("M1000 S"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|