From 46167cae672073b1ce0aeb4966b30c28bc47957e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 4 Sep 2021 14:20:24 -0400 Subject: configfile: Add support for reporting deprecated options Add a new printer.configfile.warnings with a list of config features that are deprecated. Signed-off-by: Kevin O'Connor --- klippy/extras/heaters.py | 1 + 1 file changed, 1 insertion(+) (limited to 'klippy/extras/heaters.py') diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py index b9f60e63..048f293e 100644 --- a/klippy/extras/heaters.py +++ b/klippy/extras/heaters.py @@ -180,6 +180,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 = heater.get_smooth_time() + config.deprecate('pid_integral_max') imax = config.getfloat('pid_integral_max', self.heater_max_power, minval=0.) self.temp_integ_max = 0. -- cgit v1.2.3-70-g09d2