🧑‍💻 Handle PLR in manage_media

This commit is contained in:
Scott Lahteine
2022-04-17 21:19:50 -05:00
parent aaf5bf0218
commit fd082df077
4 changed files with 18 additions and 11 deletions

View File

@@ -108,13 +108,18 @@ void PrintJobRecovery::changed() {
*
* If a saved state exists send 'M1000 S' to initiate job recovery.
*/
void PrintJobRecovery::check() {
bool PrintJobRecovery::check() {
//if (!card.isMounted()) card.mount();
bool success = false;
if (card.isMounted()) {
load();
if (!valid()) return cancel();
queue.inject(F("M1000S"));
success = valid();
if (!success)
cancel();
else
queue.inject(F("M1000S"));
}
return success;
}
/**