homing_heaters: Turn off heaters during homing/probing (#2486)

Signed-off-by: Mike Stiemke <fandjango@gmx.de>
This commit is contained in:
FanDjango
2020-02-12 16:08:30 +01:00
committed by GitHub
parent 596f5e3e3a
commit cb042e749d
4 changed files with 88 additions and 0 deletions

View File

@@ -66,6 +66,8 @@ class Homing:
print_time, ENDSTOP_SAMPLE_TIME, ENDSTOP_SAMPLE_COUNT,
rest_time, notify=self._endstop_notify)
self.toolhead.dwell(HOMING_START_DELAY)
# notify anyone out there of move start
self.printer.send_event("homing:move_begin", endstops)
# Issue move
error = None
try:
@@ -80,6 +82,8 @@ class Homing:
except mcu_endstop.TimeoutError as e:
if error is None:
error = "Failed to home %s: %s" % (name, str(e))
# notify anyone out there of move end
self.printer.send_event("homing:move_end", endstops)
# Determine stepper halt positions
self.toolhead.flush_step_generation()
end_mcu_pos = [(s, name, spos, s.get_mcu_position())