mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-16 11:17:52 -06:00
homing: Pass printer instead of toolhead object to Homing class
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e7498fa241
commit
fedf90680e
3 changed files with 5 additions and 4 deletions
|
@ -47,7 +47,7 @@ class PrinterProbe:
|
|||
cmd_PROBE_help = "Probe Z-height at current XY position"
|
||||
def cmd_PROBE(self, params):
|
||||
toolhead = self.printer.lookup_object('toolhead')
|
||||
homing_state = homing.Homing(toolhead)
|
||||
homing_state = homing.Homing(self.printer)
|
||||
pos = toolhead.get_position()
|
||||
pos[2] = self.z_position
|
||||
endstops = [(self.mcu_probe, "probe")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue