Преглед на файлове

Reformat abortSDPrinting

Scott Lahteine преди 4 години
родител
ревизия
fb67b9bdad
променени са 1 файла, в които са добавени 8 реда и са изтрити 8 реда
  1. 8
    8
      Marlin/src/MarlinCore.cpp

+ 8
- 8
Marlin/src/MarlinCore.cpp Целия файл

@@ -362,19 +362,19 @@ void startOrResumeJob() {
362 362
   inline void abortSDPrinting() {
363 363
     IF_DISABLED(NO_SD_AUTOSTART, card.autofile_cancel());
364 364
     card.endFilePrint(TERN_(SD_RESORT, true));
365
+
365 366
     queue.clear();
366 367
     quickstop_stepper();
367 368
     print_job_timer.stop();
368
-    #if DISABLED(SD_ABORT_NO_COOLDOWN)
369
-      thermalManager.disable_all_heaters();
370
-    #endif
371
-    #if !HAS_CUTTER
372
-      thermalManager.zero_fan_speeds();
373
-    #else
374
-      cutter.kill();              // Full cutter shutdown including ISR control
375
-    #endif
369
+
370
+    IF_DISABLED(SD_ABORT_NO_COOLDOWN, thermalManager.disable_all_heaters());
371
+
372
+    TERN(HAS_CUTTER, cutter.kill(), thermalManager.zero_fan_speeds()); // Full cutter shutdown including ISR control
373
+
376 374
     wait_for_heatup = false;
375
+
377 376
     TERN_(POWER_LOSS_RECOVERY, recovery.purge());
377
+
378 378
     #ifdef EVENT_GCODE_SD_ABORT
379 379
       queue.inject_P(PSTR(EVENT_GCODE_SD_ABORT));
380 380
     #endif

Loading…
Отказ
Запис