aboutsummaryrefslogtreecommitdiffstats
path: root/test/klippy
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 /test/klippy
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 'test/klippy')
-rw-r--r--test/klippy/macros.cfg8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/klippy/macros.cfg b/test/klippy/macros.cfg
index 8124aa3a..e4c9ba16 100644
--- a/test/klippy/macros.cfg
+++ b/test/klippy/macros.cfg
@@ -76,13 +76,13 @@ gcode:
{% if printer.gcode.gcode_position.x != 0.0 %}
M112
{% else %}
- { printer.gcode.action_respond_info("TEST_expression") }
+ { action_respond_info("TEST_expression") }
{% endif %}
[gcode_macro TEST_variable]
variable_t: 12.0
gcode:
- { printer.gcode.action_respond_info("TEST_variable") }
+ { action_respond_info("TEST_variable") }
{% if t - 12.0 != printer.toolhead.position.y %}
M112
{% endif %}
@@ -94,14 +94,14 @@ gcode:
[gcode_macro TEST_variable_part2]
gcode:
- { printer.gcode.action_respond_info("TEST_variable_part2") }
+ { action_respond_info("TEST_variable_part2") }
{% if printer["gcode_macro TEST_variable"].t != 17.0 %}
M112
{% endif %}
[gcode_macro TEST_param]
gcode:
- { printer.gcode.action_respond_info("TEST_param") }
+ { action_respond_info("TEST_param") }
{% if params.T != "123" %}
M112
{% endif %}