Kaynağa Gözat

Fix FILAMENT_RUNOUT_SCRIPT without ADVANCED_PAUSE_FEATURE build (#15313)

Jason Smith 5 yıl önce
ebeveyn
işleme
6ed2bf631d
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5
    1
      Marlin/src/feature/runout.h

+ 5
- 1
Marlin/src/feature/runout.h Dosyayı Görüntüle

@@ -98,7 +98,11 @@ class TFilamentMonitor : public FilamentMonitorBase {
98 98
 
99 99
     // Give the response a chance to update its counter.
100 100
     static inline void run() {
101
-      if (enabled && !filament_ran_out && (IS_SD_PRINTING() || print_job_timer.isRunning() || did_pause_print)) {
101
+      if (enabled && !filament_ran_out && (IS_SD_PRINTING() || print_job_timer.isRunning()
102
+        #if ENABLED(ADVANCED_PAUSE_FEATURE)
103
+          || did_pause_print
104
+        #endif
105
+      )) {
102 106
         #ifdef FILAMENT_RUNOUT_DISTANCE_MM
103 107
           cli(); // Prevent RunoutResponseDelayed::block_completed from accumulating here
104 108
         #endif

Loading…
İptal
Kaydet