mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-19 12:47:52 -06:00
fan: Support calling set_speed() without a print_time
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
1c0adb9af8
commit
f4143af4fa
4 changed files with 9 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue