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>
This commit is contained in:
Kevin O'Connor committed 2016-11-18 14:17:53 -05:00
1 parent 4f30dce64f
commit e0aa067cc9
4 files changed
+46 -18

No files matched your search

+3
View File
@@ -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()