Skip to content

Commit

Permalink
Fix _get_closest_exit_point()
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeauKmi authored and rogerlz committed Jul 1, 2024
1 parent b5894ff commit e874768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/extras/dockable_probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def _get_closest_exitpoint(self, point1):
dx, dy = x1 - cx, y1 - cy
d = hypot(dx, dy)
if d == 0:
return self.detach_position
return point1[:2] # Unable to determine exit point
# Ensure exit point is outside dock area.
magnitude = self.safe_dock_distance + 10e-8
x1 = cx + magnitude * dx / d
Expand Down

0 comments on commit e874768

Please sign in to comment.