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 2016-11-18 13:03:40 -05:00
parent 4f30dce64f
commit e0aa067cc9
4 changed files with 46 additions and 18 deletions

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()