homing_override: Pass params to template evaluation

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-06-09 11:14:31 -04:00
parent 8b00580884
commit d7754a8f93
1 changed files with 3 additions and 1 deletions

View File

@ -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