mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-15 02:37:52 -06:00
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:
parent
c89db2480d
commit
46167cae67
7 changed files with 40 additions and 2 deletions
|
@ -233,6 +233,7 @@ def parse_step_distance(config, units_in_radians=None, note_valid=False):
|
|||
config.get('gear_ratio', note_valid=note_valid)
|
||||
else:
|
||||
rd = config.get('rotation_distance', None, note_valid=False)
|
||||
config.deprecate('step_distance')
|
||||
sd = config.get('step_distance', None, note_valid=False)
|
||||
if rd is None and sd is not None:
|
||||
# Older config format with step_distance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue