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 <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-09-04 14:20:24 -04:00
parent c89db2480d
commit 46167cae67
7 changed files with 40 additions and 2 deletions

View file

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