From b2c78d71b05690c68e4e48e6bba0c7bdebf8814d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 16 Aug 2020 15:39:30 -0400 Subject: gcode: Remove "action_" commands from get_status() calls Rename printer.gcode.action_emergency_stop() to action_emergency_stop(), printer.gcode.action_respond_info() to action_respond_info(), and printer.gcode.action_respond_error() to action_raise_error() in command templates. This simplifies the get_status() interface, as returning callable functions from that interface was confusing. Signed-off-by: Kevin O'Connor --- klippy/extras/homing_override.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'klippy/extras/homing_override.py') diff --git a/klippy/extras/homing_override.py b/klippy/extras/homing_override.py index c5503b13..d7a9a874 100644 --- a/klippy/extras/homing_override.py +++ b/klippy/extras/homing_override.py @@ -52,11 +52,11 @@ class HomingOverride: homing_axes.append(axis) toolhead.set_position(pos, homing_axes=homing_axes) # Perform homing - kwparams = { 'printer': self.template.create_status_wrapper() } - kwparams['params'] = gcmd.get_command_parameters() + context = self.template.create_template_context() + context['params'] = gcmd.get_command_parameters() try: self.in_script = True - self.template.run_gcode_from_command(kwparams) + self.template.run_gcode_from_command(context) finally: self.in_script = False -- cgit v1.2.3-70-g09d2