Skip to content

Commit

Permalink
Update heater_fan.py
Browse files Browse the repository at this point in the history
80 character limit
  • Loading branch information
chestwood96 authored May 20, 2023
1 parent 0401a17 commit 94fa4be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions klippy/extras/heater_fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ def callback(self, eventtime):
speed = 0.
for heater in self.heaters:
current_temp, target_temp = heater.get_temp(eventtime)
if (target_temp or current_temp > self.heater_temp)
or (self.last_speed > 0
and (target_temp or current_temp
> self.heater_temp - self.heater_temp_off_offset)):
if (target_temp or current_temp > self.heater_temp) or \
(self.last_speed > 0 and (target_temp \
or current_temp > self.heater_temp - self.heater_temp_off_offset)):
speed = self.fan_speed
if speed != self.last_speed:
self.last_speed = speed
Expand Down

0 comments on commit 94fa4be

Please sign in to comment.