Browse Source

✏️ Followup for M524 (#24775)

Followup to #24761
ellensp 1 year ago
parent
commit
8aa3273242
No account linked to committer's email address
1 changed files with 7 additions and 5 deletions
  1. 7
    5
      Marlin/src/module/temperature.cpp

+ 7
- 5
Marlin/src/module/temperature.cpp View File

@@ -1849,11 +1849,13 @@ void Temperature::task() {
1849 1849
       quickstop_stepper();
1850 1850
     }
1851 1851
 
1852
-    if (emergency_parser.sd_abort_by_M524) { // abort SD print immediately
1853
-      emergency_parser.sd_abort_by_M524 = false;
1854
-      card.flag.abort_sd_printing = true;
1855
-      gcode.process_subcommands_now(F("M524"));
1856
-    }
1852
+    #if ENABLED(SDSUPPORT)
1853
+      if (emergency_parser.sd_abort_by_M524) { // abort SD print immediately
1854
+        emergency_parser.sd_abort_by_M524 = false;
1855
+        card.flag.abort_sd_printing = true;
1856
+        gcode.process_subcommands_now(F("M524"));
1857
+      }
1858
+    #endif
1857 1859
   #endif
1858 1860
 
1859 1861
   if (!updateTemperaturesIfReady()) return; // Will also reset the watchdog if temperatures are ready

Loading…
Cancel
Save