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

@ -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"));
}
}