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:
Kevin O'Connor 2017-12-18 13:07:41 -05:00
parent e6e0a21b06
commit 68d03e4a3e
3 changed files with 27 additions and 20 deletions

View file

@ -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)