diff options
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/temperature_fan.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/klippy/extras/temperature_fan.py b/klippy/extras/temperature_fan.py index 80ae162a..92dda7e0 100644 --- a/klippy/extras/temperature_fan.py +++ b/klippy/extras/temperature_fan.py @@ -147,9 +147,7 @@ class ControlPID: self.Ki = config.getfloat('pid_Ki') / PID_PARAM_BASE self.Kd = config.getfloat('pid_Kd') / PID_PARAM_BASE self.min_deriv_time = config.getfloat('pid_deriv_time', 2., above=0.) - imax = config.getfloat('pid_integral_max', - self.temperature_fan.get_max_speed(), minval=0.) - self.temp_integ_max = imax / self.Ki + self.temp_integ_max = self.temperature_fan.get_max_speed() / self.Ki self.prev_temp = AMBIENT_TEMP self.prev_temp_time = 0. self.prev_temp_deriv = 0. |