diff options
Diffstat (limited to 'config/example-extras.cfg')
-rw-r--r-- | config/example-extras.cfg | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg index 1a7835a1..e418cd3a 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -1454,11 +1454,11 @@ # 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. +# The given variable name will be assigned the given value (parsed +# as a Python literal) and will be available during macro expansion. +# For example, a config with "variable_fan_speed = 75" might have +# gcode commands containing "M106 S{ fan_speed * 255 }". Variables +# can be changed at run-time using the SET_GCODE_VARIABLE command. # Enable the "M118" and "RESPOND" extended commands. |