gcode_button: Simplify script execution

It's no longer necessary to queue gcode scripts - gcode.run_script()
now does that automatically.

Also, make release_gcode config optional.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-04-25 12:09:03 -04:00
parent c590bf7643
commit 86a99cf38e
2 changed files with 12 additions and 27 deletions

View file

@ -1208,10 +1208,11 @@
# provided.
#press_gcode:
# A list of G-Code commands to execute when the button is pressed.
# G-Code templates are supported.
# G-Code templates are supported. This parameter must be provided.
#release_gcode:
# A list of G-Code commands to execute when the button is released.
# G-Code templates are supported.
# G-Code templates are supported. The default is to not run any
# commands on a button release.
# Run-time configurable output pins (one may define any number of
# sections with an "output_pin" prefix). Pins configured here will be