From cb042e749dea6b8ec24449d26c656d191585fdaf Mon Sep 17 00:00:00 2001 From: FanDjango <51046875+FanDjango@users.noreply.github.com> Date: Wed, 12 Feb 2020 16:08:30 +0100 Subject: homing_heaters: Turn off heaters during homing/probing (#2486) Signed-off-by: Mike Stiemke --- klippy/homing.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'klippy/homing.py') diff --git a/klippy/homing.py b/klippy/homing.py index 1c2557f4..be940447 100644 --- a/klippy/homing.py +++ b/klippy/homing.py @@ -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()) -- cgit v1.2.3-70-g09d2