Skip to content

Commit

Permalink
config feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlz committed Dec 20, 2024
1 parent c065b7b commit eaa82b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions klippy/stepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions test/klippy/tmc.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eaa82b8

Please sign in to comment.