From 2d1f7ff2d06206a6a4afe176b8b9e6b6e24e4c69 Mon Sep 17 00:00:00 2001 From: Rogerio Goncalves Date: Fri, 20 Dec 2024 12:14:40 -0300 Subject: [PATCH] config feedback --- klippy/stepper.py | 4 +--- test/klippy/tmc.cfg | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) 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