aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-11-18 13:03:40 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-11-18 14:17:53 -0500
commite0aa067cc9e85d3244045afce34fc2e6764fa66e (patch)
treeef3a7f4e86860180843f52fb5885c6a22478b5a1 /klippy/gcode.py
parent4f30dce64f16ad17ba471538fa3abe0e63f5b91f (diff)
downloadkutter-e0aa067cc9e85d3244045afce34fc2e6764fa66e.tar.gz
kutter-e0aa067cc9e85d3244045afce34fc2e6764fa66e.tar.xz
kutter-e0aa067cc9e85d3244045afce34fc2e6764fa66e.zip
homing: Check for timeout during homing operation
Should a homing move complete without hitting the endstop, then disable motors, disable the endstop checking, and report the error to the user. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index 5262676a..88797077 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -151,6 +151,9 @@ class GCodeParser:
def busy_handler(self, eventtime):
try:
busy = self.busy_state.check_busy(eventtime)
+ except homing.EndstopError, e:
+ self.respond("Error: %s" % (e,))
+ busy = False
except:
logging.exception("Exception in busy handler")
self.toolhead.force_shutdown()