gcode_macro: Support overriding of builtin g-code commands

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-02-12 20:34:20 -05:00
parent 0cfab84e1a
commit 9818055ac3
2 changed files with 30 additions and 2 deletions

View file

@ -420,6 +420,13 @@
# can be changed at run-time using the SET_GCODE_VARIABLE command
# (see docs/Command_Templates.md for details). Variable names may
# not use upper case characters.
#rename_existing:
# This option will cause the macro to override an existing G-Code
# command, and the existing definition for the command will be
# renamed to the name provided here. This can be used to override
# builtin G-Code commands. Care should be taken when overriding
# commands as that can cause complex and unexpected results. The
# default is to not override an existing G-Code command.
# Execute a gcode on a set delay.
#[delayed_gcode my_delayed_gcode]