diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-09-03 16:22:54 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-09-03 16:22:54 -0400 |
commit | 1f3a160f47175c44722a3ce1e58e90c359b99c99 (patch) | |
tree | b3dec7de83cea37073ffafa557b8b28b3304b8d3 /klippy/homing.py | |
parent | d0ed6e57050d280a412f82e17d2de56a5b8280ad (diff) | |
download | kutter-1f3a160f47175c44722a3ce1e58e90c359b99c99.tar.gz kutter-1f3a160f47175c44722a3ce1e58e90c359b99c99.tar.xz kutter-1f3a160f47175c44722a3ce1e58e90c359b99c99.zip |
toolhead: Add a move.move_error() helper
Move the EndstopMoveError() code from homing.py to a new method in the
toolhead Move class.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/homing.py')
-rw-r--r-- | klippy/homing.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/klippy/homing.py b/klippy/homing.py index cc808cc1..ce9a3de8 100644 --- a/klippy/homing.py +++ b/klippy/homing.py @@ -164,8 +164,4 @@ class CommandError(Exception): class EndstopError(CommandError): pass -def EndstopMoveError(pos, msg="Move out of range"): - return EndstopError("%s: %.3f %.3f %.3f [%.3f]" % ( - msg, pos[0], pos[1], pos[2], pos[3])) - Coord = collections.namedtuple('Coord', ('x', 'y', 'z', 'e')) |