aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/homing.py
diff options
context:
space:
mode:
authorFanDjango <51046875+FanDjango@users.noreply.github.com>2020-02-12 16:08:30 +0100
committerGitHub <noreply@github.com>2020-02-12 10:08:30 -0500
commitcb042e749dea6b8ec24449d26c656d191585fdaf (patch)
treec787ffa4e53c7c3b8b7c8540a51beca7828941e5 /klippy/homing.py
parent596f5e3e3a0e9cdde47fe1975e13c0b5c166bf34 (diff)
downloadkutter-cb042e749dea6b8ec24449d26c656d191585fdaf.tar.gz
kutter-cb042e749dea6b8ec24449d26c656d191585fdaf.tar.xz
kutter-cb042e749dea6b8ec24449d26c656d191585fdaf.zip
homing_heaters: Turn off heaters during homing/probing (#2486)
Signed-off-by: Mike Stiemke <fandjango@gmx.de>
Diffstat (limited to 'klippy/homing.py')
-rw-r--r--klippy/homing.py4
1 files changed, 4 insertions, 0 deletions
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())