Browse Source

Fix M1001 auto-check logic (#20456)

vanilla_fb_2.0.x
kisslorand 4 years ago
committed by Scott Lahteine
parent
commit
a59164d5c8
  1. 2
      Marlin/src/gcode/sd/M1001.cpp

2
Marlin/src/gcode/sd/M1001.cpp

@ -65,7 +65,7 @@
*/ */
void GcodeSuite::M1001() { void GcodeSuite::M1001() {
// If there's another auto#.g file to run... // 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... // Purge the recovery file...
TERN_(POWER_LOSS_RECOVERY, recovery.purge()); TERN_(POWER_LOSS_RECOVERY, recovery.purge());

Loading…
Cancel
Save