diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-05-28 12:17:08 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-06-04 09:50:30 -0400 |
commit | a68f577adf87ed596acb1da201bd481fc0687a7b (patch) | |
tree | 2fda89d57be8769bd18d32c75a0d8bb8f3414d57 /config/example-extras.cfg | |
parent | 6e88320d625ae80e4b4b87c75ba5540b9f4da146 (diff) | |
download | kutter-a68f577adf87ed596acb1da201bd481fc0687a7b.tar.gz kutter-a68f577adf87ed596acb1da201bd481fc0687a7b.tar.xz kutter-a68f577adf87ed596acb1da201bd481fc0687a7b.zip |
gcode_macro: Add support for SET_GCODE_VARIABLE command
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'config/example-extras.cfg')
-rw-r--r-- | config/example-extras.cfg | 7 |
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. |