Browse Source

Fix FILAMENT_RUNOUT_SCRIPT without ADVANCED_PAUSE_FEATURE build (#15313)

Jason Smith 5 years ago
parent
commit
6ed2bf631d
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/src/feature/runout.h

+ 5
- 1
Marlin/src/feature/runout.h View File

98
 
98
 
99
     // Give the response a chance to update its counter.
99
     // Give the response a chance to update its counter.
100
     static inline void run() {
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
         #ifdef FILAMENT_RUNOUT_DISTANCE_MM
106
         #ifdef FILAMENT_RUNOUT_DISTANCE_MM
103
           cli(); // Prevent RunoutResponseDelayed::block_completed from accumulating here
107
           cli(); // Prevent RunoutResponseDelayed::block_completed from accumulating here
104
         #endif
108
         #endif

Loading…
Cancel
Save