From 4e09cacece680885d554fc843b09115b98fb495a Mon Sep 17 00:00:00 2001 From: Master92 Date: Mon, 16 Sep 2019 13:16:17 +0200 Subject: [PATCH] controller_fan: Use keyword arguments to improve readability Signed-off-by: Nils Friedchen --- klippy/extras/controller_fan.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/klippy/extras/controller_fan.py b/klippy/extras/controller_fan.py index 81d375f1..0d2dc37d 100644 --- a/klippy/extras/controller_fan.py +++ b/klippy/extras/controller_fan.py @@ -16,10 +16,12 @@ class ControllerFan: self.fan = fan.PrinterFan(config) self.mcu = self.fan.mcu_fan.get_mcu() self.max_power = config.getfloat( - 'max_power', 1., minval=0., maxval=1.) + 'max_power', default=1., + minval=0., maxval=1.) self.idle_speed = config.getfloat( - 'idle_speed', self.max_power, minval=0., maxval=self.max_power) - self.idle_timeout = config.getint("idle_timeout", 30, minval=0) + 'idle_speed', default=self.max_power, + minval=0., maxval=self.max_power) + self.idle_timeout = config.getint("idle_timeout", default=30, minval=0) self.heater_name = config.get("heater", "extruder") self.last_on = self.idle_timeout def handle_ready(self):