mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-10 15:25:20 -06:00
gcode_macro: default parameter values
Signed-off-by: Janar Sööt <janar.soot@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
d9e35481be
commit
68dc28580f
2 changed files with 15 additions and 1 deletions
|
@ -976,6 +976,14 @@
|
|||
# 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.
|
||||
#default_parameter_<parameter>:
|
||||
# One may define any number of options with a "default_parameter_"
|
||||
# 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_paramter_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.
|
||||
|
||||
|
||||
# Replicape support - see the generic-replicape.cfg file for further
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue