Skip to content
Snippets Groups Projects
Commit 6ed2bf63 authored by Jason Smith's avatar Jason Smith Committed by Scott Lahteine
Browse files

Fix FILAMENT_RUNOUT_SCRIPT without ADVANCED_PAUSE_FEATURE build (#15313)

parent 514223f9
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,11 @@ class TFilamentMonitor : public FilamentMonitorBase { ...@@ -98,7 +98,11 @@ class TFilamentMonitor : public FilamentMonitorBase {
// Give the response a chance to update its counter. // Give the response a chance to update its counter.
static inline void run() { static inline void run() {
if (enabled && !filament_ran_out && (IS_SD_PRINTING() || print_job_timer.isRunning() || did_pause_print)) { if (enabled && !filament_ran_out && (IS_SD_PRINTING() || print_job_timer.isRunning()
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|| did_pause_print
#endif
)) {
#ifdef FILAMENT_RUNOUT_DISTANCE_MM #ifdef FILAMENT_RUNOUT_DISTANCE_MM
cli(); // Prevent RunoutResponseDelayed::block_completed from accumulating here cli(); // Prevent RunoutResponseDelayed::block_completed from accumulating here
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment