mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-15 20:59:56 +01:00
gcode_macro: Add support "x in printer" to templates
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user