aboutsummaryrefslogtreecommitdiffstats
path: root/config/example-extras.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'config/example-extras.cfg')
-rw-r--r--config/example-extras.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index b4ec6750..d3e1f1c7 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -1487,6 +1487,13 @@
# command "MY_DELAY" would evaluate to "G4 P50". The default is to
# require that all parameters used in the gcode script be present in
# the command invoking the macro.
+#variable_<name>:
+# One may specify any number of options with a "variable_" prefix.
+# The given variable name will then be available during macro
+# expansion. For example, a config with "variable_my_name = zebra"
+# might have a gcode config containing "M117 My name is {my_name}".
+# Variables can be changed at run-time using the SET_GCODE_VARIABLE
+# command.
# Enable the "M118" and "RESPOND" extended commands.