diff --git a/klippy/stepper.py b/klippy/stepper.py index 65ee53490..f62067d35 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -461,9 +461,7 @@ def __init__( "min_home_dist", self.homing_retract_dist, minval=0.0 ) - self.homing_accel = config.get("homing_accel", None) - if self.homing_accel is not None: - self.homing_accel = config.getfloat("homing_accel", minval=0.0) + self.homing_accel = config.getfloat("homing_accel", None, above=0.0) if self.homing_positive_dir is None: axis_len = self.position_max - self.position_min diff --git a/test/klippy/tmc.cfg b/test/klippy/tmc.cfg index 1d68007d7..d0b5b4847 100644 --- a/test/klippy/tmc.cfg +++ b/test/klippy/tmc.cfg @@ -38,6 +38,9 @@ endstop_pin: tmc5160_stepper_y:virtual_endstop position_endstop: 0 position_max: 210 use_sensorless_homing: true +homing_speed: 100 +homing_accel: 1000 + [tmc5160 stepper_y] cs_pin: PG2