config: Note gcode_macro string formatting in example-extras.cfg

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-09-26 08:25:44 -04:00
parent 439f6684be
commit cf79b3c342
1 changed files with 6 additions and 2 deletions

View File

@ -970,8 +970,12 @@
#[gcode_macro my_cmd]
#gcode:
# A list of G-Code commands (one per line; subsequent lines
# indented) to execute in place of "my_cmd". This parameter must be
# provided.
# indented) to execute in place of "my_cmd". This parameter is
# evaluated using Python "string format syntax" with the command
# parameters as named arguments. For example, if one were to define
# a macro MY_DELAY with gcode "G4 P{DELAY}" then the command
# "MY_DELAY DELAY=100" would evaluate to "G4 P100". This parameter
# must be provided.
# Replicape support - see the generic-replicape.cfg file for further