From 552e008229663e372c525f9cd972d4e88c1fd564 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Sun, 15 Dec 2019 17:23:13 +0100 Subject: [PATCH] runout: Reset ran_out boolean on print resume If the sensor was triggered during a print, the sensor status remains disabled, even after the end of the current print.. which avoid a new trigger. internally, filament_ran_out bool remains true. --- Marlin/src/feature/pause.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Marlin/src/feature/pause.cpp b/Marlin/src/feature/pause.cpp index 4ec0a2b60896..4c4f3aa0d4fc 100644 --- a/Marlin/src/feature/pause.cpp +++ b/Marlin/src/feature/pause.cpp @@ -694,6 +694,10 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le thermalManager.set_fans_paused(false); #endif + #if HAS_FILAMENT_SENSOR + runout.reset(); + #endif + // Resume the print job timer if it was running if (print_job_timer.isPaused()) print_job_timer.start();