mirror of https://github.com/Desuuuu/klipper.git
homing_override: Pass params to template evaluation
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8b00580884
commit
d7754a8f93
|
@ -53,9 +53,11 @@ class HomingOverride:
|
||||||
toolhead.set_position(pos, homing_axes=homing_axes)
|
toolhead.set_position(pos, homing_axes=homing_axes)
|
||||||
self.gcode.reset_last_position()
|
self.gcode.reset_last_position()
|
||||||
# Perform homing
|
# Perform homing
|
||||||
|
kwparams = { 'printer': self.template.create_status_wrapper() }
|
||||||
|
kwparams['params'] = params
|
||||||
try:
|
try:
|
||||||
self.in_script = True
|
self.in_script = True
|
||||||
self.template.run_gcode_from_command()
|
self.template.run_gcode_from_command(kwparams)
|
||||||
finally:
|
finally:
|
||||||
self.in_script = False
|
self.in_script = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue