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 14, 2023
1 parent 7930139 commit f2077a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klippy/extras/filament_switch_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ def _runout_event_handler(self, eventtime):
# of pause_resume execute immediately.
if self.runout_distance > 0:
if self.runout_distance_timer is None:
if self.immediate_runout_gcode is not None:
self._exec_gcode("", self.immediate_runout_gcode)
self.runout_position = (self.defined_sensor
.get_extruder_pos(eventtime))
self.runout_distance_timer = self.reactor.register_timer(
self._pause_after_distance, self.reactor.NOW)
if self.immediate_runout_gcode is not None:
self._exec_gcode("", self.immediate_runout_gcode)
else:
self._execute_runout(eventtime)
def _execute_runout(self, eventtime):
Expand Down

0 comments on commit f2077a4

Please sign in to comment.