From b3db2f708e1ebd86682fbc7f7790a5fffff0523a Mon Sep 17 00:00:00 2001 From: Zeanon Date: Tue, 10 Oct 2023 21:51:07 +0200 Subject: [PATCH] Update filament_motion_sensor.py --- klippy/extras/filament_motion_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/filament_motion_sensor.py b/klippy/extras/filament_motion_sensor.py index 7928c767175c..83726e346118 100644 --- a/klippy/extras/filament_motion_sensor.py +++ b/klippy/extras/filament_motion_sensor.py @@ -86,7 +86,7 @@ def set_filament_sensor(self, gcmd): gcmd.respond_info(self.get_sensor_status()) return if enable is not None: - if enable and not self.runout_helper.sensor_enabled: + if enable != self.runout_helper.sensor_enabled: reset = 1 self.runout_helper.sensor_enabled = enable if detection_length is not None: