diff --git a/klippy/extras/filament_switch_sensor.py b/klippy/extras/filament_switch_sensor.py index 3641fbda4e14..f0908ca51fc3 100644 --- a/klippy/extras/filament_switch_sensor.py +++ b/klippy/extras/filament_switch_sensor.py @@ -175,7 +175,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 runout_distance is not None: