Browse Source

Fix M1001 auto-check logic (#20456)

kisslorand 4 years ago
parent
commit
7be57ff9f0
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/sd/M1001.cpp

+ 1
- 1
Marlin/src/gcode/sd/M1001.cpp View File

65
  */
65
  */
66
 void GcodeSuite::M1001() {
66
 void GcodeSuite::M1001() {
67
   // If there's another auto#.g file to run...
67
   // If there's another auto#.g file to run...
68
-  if (TERN(NO_SD_AUTOSTART, false, card.autofile_check())) return;
68
+  if (TERN(NO_SD_AUTOSTART, false, !card.autofile_check())) return;
69
 
69
 
70
   // Purge the recovery file...
70
   // Purge the recovery file...
71
   TERN_(POWER_LOSS_RECOVERY, recovery.purge());
71
   TERN_(POWER_LOSS_RECOVERY, recovery.purge());

Loading…
Cancel
Save