aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/homing_override.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-08-16 15:39:30 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-08-20 21:03:22 -0400
commitb2c78d71b05690c68e4e48e6bba0c7bdebf8814d (patch)
treea7f10f1233727fb260990ad23e3d6122b81620f0 /klippy/extras/homing_override.py
parent2caaaea9a4bdd55846cdcf24b0efba60bcdfbd51 (diff)
downloadkutter-b2c78d71b05690c68e4e48e6bba0c7bdebf8814d.tar.gz
kutter-b2c78d71b05690c68e4e48e6bba0c7bdebf8814d.tar.xz
kutter-b2c78d71b05690c68e4e48e6bba0c7bdebf8814d.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/homing_override.py')
-rw-r--r--klippy/extras/homing_override.py6
1 files changed, 3 insertions, 3 deletions
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