Skip to content

Commit

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

0 comments on commit b3db2f7

Please sign in to comment.