diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2024-09-21 15:42:26 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-09-30 12:23:24 -0400 |
commit | f4143af4fa26822db2e1c4321de7377b808ce16f (patch) | |
tree | b07f9b1027b2cb09232896545aca7befbf842e42 /klippy/extras/fan.py | |
parent | 1c0adb9af88411116a4980636e8070ae1decd457 (diff) | |
download | kutter-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/fan.py')
-rw-r--r-- | klippy/extras/fan.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/fan.py b/klippy/extras/fan.py index 0fc88a37..37b531ba 100644 --- a/klippy/extras/fan.py +++ b/klippy/extras/fan.py @@ -66,7 +66,7 @@ class Fan: return "delay", self.kick_start_time self.last_fan_value = self.last_req_value = value self.mcu_fan.set_pwm(print_time, value) - def set_speed(self, print_time, value): + def set_speed(self, value, print_time=None): self.gcrq.send_async_request(value, print_time) def set_speed_from_command(self, value): self.gcrq.queue_gcode_request(value) |