Skip to content

Commit

Permalink
Update filament_switch_sensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Oct 10, 2023
1 parent c8dd00b commit cf799de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/extras/filament_switch_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cf799de

Please sign in to comment.