aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/heater_fan.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-09-21 15:42:26 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-09-30 12:23:24 -0400
commitf4143af4fa26822db2e1c4321de7377b808ce16f (patch)
treeb07f9b1027b2cb09232896545aca7befbf842e42 /klippy/extras/heater_fan.py
parent1c0adb9af88411116a4980636e8070ae1decd457 (diff)
downloadkutter-f4143af4fa26822db2e1c4321de7377b808ce16f.tar.gz
kutter-f4143af4fa26822db2e1c4321de7377b808ce16f.tar.xz
kutter-f4143af4fa26822db2e1c4321de7377b808ce16f.zip
fan: Support calling set_speed() without a print_time
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/heater_fan.py')
-rw-r--r--klippy/extras/heater_fan.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/klippy/extras/heater_fan.py b/klippy/extras/heater_fan.py
index ab4c8a81..3630366e 100644
--- a/klippy/extras/heater_fan.py
+++ b/klippy/extras/heater_fan.py
@@ -33,9 +33,7 @@ class PrinterHeaterFan:
speed = self.fan_speed
if speed != self.last_speed:
self.last_speed = speed
- curtime = self.printer.get_reactor().monotonic()
- print_time = self.fan.get_mcu().estimated_print_time(curtime)
- self.fan.set_speed(print_time + PIN_MIN_TIME, speed)
+ self.fan.set_speed(speed)
return eventtime + 1.
def load_config_prefix(config):