Skip to content

Commit

Permalink
fan: Wait full kick_start_time even if request is for full speed
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin O'Connor <[email protected]>
  • Loading branch information
KevinOConnor committed Sep 18, 2024
1 parent 5731d96 commit 87ac693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/extras/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _apply_speed(self, print_time, value):
self.enable_pin.set_digital(print_time, 1)
elif value == 0 and self.last_fan_value > 0:
self.enable_pin.set_digital(print_time, 0)
if (value and value < self.max_power and self.kick_start_time
if (value and self.kick_start_time
and (not self.last_fan_value or value - self.last_fan_value > .5)):
# Run fan at full speed for specified kick_start_time
self.last_req_value = value
Expand Down

0 comments on commit 87ac693

Please sign in to comment.