From d7754a8f93bc3788399d4f1a80b578698e6cc3ef Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 9 Jun 2019 11:14:31 -0400 Subject: [PATCH] homing_override: Pass params to template evaluation Signed-off-by: Kevin O'Connor --- klippy/extras/homing_override.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/klippy/extras/homing_override.py b/klippy/extras/homing_override.py index 5e258d91..06b497a4 100644 --- a/klippy/extras/homing_override.py +++ b/klippy/extras/homing_override.py @@ -53,9 +53,11 @@ class HomingOverride: toolhead.set_position(pos, homing_axes=homing_axes) self.gcode.reset_last_position() # Perform homing + kwparams = { 'printer': self.template.create_status_wrapper() } + kwparams['params'] = params try: self.in_script = True - self.template.run_gcode_from_command() + self.template.run_gcode_from_command(kwparams) finally: self.in_script = False