aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Smith <davidosmith@gmail.com>2019-12-10 14:01:41 -0500
committerKevinOConnor <kevin@koconnor.net>2019-12-10 14:01:41 -0500
commitd1f4f188101651f9b41b8b2bd4b9f088a1e3514a (patch)
tree7003be72d3b129df65c3656a06042b82758bf15c
parent8663bc819286d441d477f0693426c03987618a77 (diff)
downloadkutter-d1f4f188101651f9b41b8b2bd4b9f088a1e3514a.tar.gz
kutter-d1f4f188101651f9b41b8b2bd4b9f088a1e3514a.tar.xz
kutter-d1f4f188101651f9b41b8b2bd4b9f088a1e3514a.zip
config: Add example for including a parameter in a macro call (#2251)
Add description to default_parameter of g-code macro description of method to call macro with a non-default value. Signed-off-by: David Smith <davidosmith@gmail.com>
-rw-r--r--config/example-extras.cfg8
1 files changed, 5 insertions, 3 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index 9d58d5ba..b48ca5c9 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -400,9 +400,11 @@
# prefix. Use this to define default values for g-code parameters.
# For example, if one were to define the macro MY_DELAY with gcode
# "G4 P{DELAY}" along with "default_parameter_DELAY = 50" then the
-# 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.
+# command "MY_DELAY" would evaluate to "G4 P50". To override the
+# default parameter when calling the command then using
+# "MY_DELAY DELAY=30" would evaluate to "G4 P30". 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 be assigned the given value (parsed