stepper: Remove support for deprecated step_distance option

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-10-24 20:58:59 -04:00
parent 5d9d91d3a6
commit eea0137bf0
1 changed files with 0 additions and 7 deletions

View File

@ -229,13 +229,6 @@ def parse_step_distance(config, units_in_radians=None, note_valid=False):
rotation_dist = 2. * math.pi
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
return config.getfloat('step_distance', above=0.,
note_valid=note_valid)
rotation_dist = config.getfloat('rotation_distance', above=0.,
note_valid=note_valid)
# Newer config format with rotation_distance