Skip to content

Commit

Permalink
Fix M1001 auto-check logic (MarlinFirmware#20456)
Browse files Browse the repository at this point in the history
  • Loading branch information
kisslorand authored and kpishere committed Feb 19, 2021
1 parent a53f821 commit bf988bc
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 bf988bc

Please sign in to comment.