Skip to content

Commit

Permalink
Fix M1001 auto-check logic (#20456)
Browse files Browse the repository at this point in the history
  • Loading branch information
kisslorand authored Dec 15, 2020
1 parent 81a0206 commit 7be57ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/gcode/sd/M1001.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
*/
void GcodeSuite::M1001() {
// If there's another auto#.g file to run...
if (TERN(NO_SD_AUTOSTART, false, card.autofile_check())) return;
if (TERN(NO_SD_AUTOSTART, false, !card.autofile_check())) return;

// Purge the recovery file...
TERN_(POWER_LOSS_RECOVERY, recovery.purge());
Expand Down

0 comments on commit 7be57ff

Please sign in to comment.