aboutsummaryrefslogtreecommitdiffstats
path: root/test/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-06-04 12:41:28 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-06-04 12:41:28 -0400
commitd065787afcc312fd5bee709a9b8cb15647f0ab08 (patch)
tree7ffdca92809eab84f89dc534c70b7b2a9290e96c /test/klippy
parent1c09a0935fdd233d617bd6cf9d14db97b38e1553 (diff)
downloadkutter-d065787afcc312fd5bee709a9b8cb15647f0ab08.tar.gz
kutter-d065787afcc312fd5bee709a9b8cb15647f0ab08.tar.xz
kutter-d065787afcc312fd5bee709a9b8cb15647f0ab08.zip
gcode_macro: Add support "x in printer" to templates
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'test/klippy')
-rw-r--r--test/klippy/macros.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/klippy/macros.cfg b/test/klippy/macros.cfg
index d766c9d6..4886425f 100644
--- a/test/klippy/macros.cfg
+++ b/test/klippy/macros.cfg
@@ -106,6 +106,12 @@ gcode:
M112
{% endif %}
+[gcode_macro TEST_in]
+gcode:
+ {% if "abc" in printer or "gcode" not in printer %}
+ M112
+ {% endif %}
+
# Main test start point
[gcode_macro TESTIT]
gcode:
@@ -113,3 +119,4 @@ gcode:
TEST_expression
TEST_variable
TEST_param T=123
+ TEST_in