mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-07 22:14:05 -06:00
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>
This commit is contained in:
parent
560d48dbc9
commit
4115a77342
8 changed files with 3 additions and 9 deletions
|
@ -35,7 +35,6 @@ class TuningTower:
|
|||
self.command_fmt = "%s %s=%%.9f" % (command, parameter)
|
||||
self.normal_transform = self.gcode.set_move_transform(self, force=True)
|
||||
self.last_z = -99999999.9
|
||||
self.gcode.reset_last_position()
|
||||
self.get_position()
|
||||
gcmd.respond_info("Starting tuning test (start=%.6f factor=%.6f)"
|
||||
% (self.start, self.factor))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue