mirror of https://github.com/Desuuuu/klipper.git
homing: Avoid divide by zero error on PROBE at minimum Z position
Reported by @proto3. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
ee9657bbf6
commit
06846313fd
|
@ -39,6 +39,8 @@ class Homing:
|
|||
- s.calc_position_from_coord(movepos))
|
||||
/ s.get_step_dist())
|
||||
for s in mcu_endstop.get_steppers()])
|
||||
if max_steps <= 0.:
|
||||
return .001
|
||||
return move_t / max_steps
|
||||
def homing_move(self, movepos, endstops, speed,
|
||||
probe_pos=False, verify_movement=False):
|
||||
|
|
Loading…
Reference in New Issue