瀏覽代碼

Fix M1001 auto-check logic (#20456)

kisslorand 4 年之前
父節點
當前提交
7be57ff9f0
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/src/gcode/sd/M1001.cpp

+ 1
- 1
Marlin/src/gcode/sd/M1001.cpp 查看文件

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…
取消
儲存