diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-08-16 22:02:23 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-08-20 21:03:22 -0400 |
commit | 4115a77342239bfbef3be2463e3ba6b5c3616167 (patch) | |
tree | bfe930fb3fca2db45b3a78e5ed4943dde29fe2ab /klippy/extras/homing_override.py | |
parent | 560d48dbc9bbea51c317ebeef92f9262d31923f1 (diff) | |
download | kutter-4115a77342239bfbef3be2463e3ba6b5c3616167.tar.gz kutter-4115a77342239bfbef3be2463e3ba6b5c3616167.tar.xz kutter-4115a77342239bfbef3be2463e3ba6b5c3616167.zip |
gcode: Automatically call reset_last_position() on a toolhead set_position()
Generate a "toolhead:set_position" event on a call to
toolhead.set_position() and use that event to automatically call
gcode.reset_last_position().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/homing_override.py')
-rw-r--r-- | klippy/extras/homing_override.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/klippy/extras/homing_override.py b/klippy/extras/homing_override.py index 1561aabc..c5503b13 100644 --- a/klippy/extras/homing_override.py +++ b/klippy/extras/homing_override.py @@ -51,7 +51,6 @@ class HomingOverride: pos[axis] = loc homing_axes.append(axis) toolhead.set_position(pos, homing_axes=homing_axes) - self.gcode.reset_last_position() # Perform homing kwparams = { 'printer': self.template.create_status_wrapper() } kwparams['params'] = gcmd.get_command_parameters() |