mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 15:37:31 -06:00
mcu: Allow both shutdown and startup values to be set for output pins
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e6e0a21b06
commit
68d03e4a3e
3 changed files with 27 additions and 20 deletions
|
@ -42,7 +42,7 @@ class PrinterHeaterFan:
|
|||
max_power = self.fan.max_power
|
||||
self.fan_speed = config.getfloat(
|
||||
"fan_speed", max_power, minval=0., maxval=max_power)
|
||||
self.fan.mcu_fan.setup_shutdown_value(max_power)
|
||||
self.fan.mcu_fan.setup_start_value(0., max_power)
|
||||
printer.reactor.register_timer(self.callback, printer.reactor.NOW)
|
||||
def callback(self, eventtime):
|
||||
current_temp, target_temp = self.heater.get_temp(eventtime)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue