Skip to content

Commit

Permalink
temperature_fan: fix control curve typo (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlz authored Oct 29, 2024
1 parent df56732 commit 568ae9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/extras/temperature_fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def __init__(self, temperature_fan, config, controlled_fan=None):
self.last_temp = 0.0

def temperature_callback(self, read_time, temp):
def _interpolate(sbelow, above, temp):
def _interpolate(below, above, temp):
return (
(below[1] * (above[0] - temp)) + (above[1] * (temp - below[0]))
) / (above[0] - below[0])
Expand Down

0 comments on commit 568ae9f

Please sign in to comment.