diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-08-16 15:39:30 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-08-20 21:03:22 -0400 |
commit | b2c78d71b05690c68e4e48e6bba0c7bdebf8814d (patch) | |
tree | a7f10f1233727fb260990ad23e3d6122b81620f0 /klippy/extras/display/menu.cfg | |
parent | 2caaaea9a4bdd55846cdcf24b0efba60bcdfbd51 (diff) | |
download | kutter-b2c78d71b05690c68e4e48e6bba0c7bdebf8814d.tar.gz kutter-b2c78d71b05690c68e4e48e6bba0c7bdebf8814d.tar.xz kutter-b2c78d71b05690c68e4e48e6bba0c7bdebf8814d.zip |
gcode: Remove "action_" commands from get_status() calls
Rename printer.gcode.action_emergency_stop() to
action_emergency_stop(), printer.gcode.action_respond_info() to
action_respond_info(), and printer.gcode.action_respond_error() to
action_raise_error() in command templates.
This simplifies the get_status() interface, as returning callable
functions from that interface was confusing.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/display/menu.cfg')
-rw-r--r-- | klippy/extras/display/menu.cfg | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/klippy/extras/display/menu.cfg b/klippy/extras/display/menu.cfg index 95b3c29b..c1ac2d69 100644 --- a/klippy/extras/display/menu.cfg +++ b/klippy/extras/display/menu.cfg @@ -137,21 +137,21 @@ type: command enable: {printer.idle_timeout.state == "Printing"} name: Pause printing gcode: - {printer.gcode.action_respond_info('action:pause')} + {action_respond_info('action:pause')} [menu __main __octoprint __resume] type: command enable: {not printer.idle_timeout.state == "Printing"} name: Resume printing gcode: - {printer.gcode.action_respond_info('action:resume')} + {action_respond_info('action:resume')} [menu __main __octoprint __abort] type: command enable: {printer.idle_timeout.state == "Printing"} name: Abort printing gcode: - {printer.gcode.action_respond_info('action:cancel')} + {action_respond_info('action:cancel')} ### menu virtual sdcard ### [menu __main __sdcard] @@ -720,8 +720,9 @@ name: Dump parameters gcode: {% for name1 in printer %} {% for name2 in printer[name1] %} - { printer.gcode.action_respond_info("printer['%s'].%s = %s" % (name1, name2, printer[name1][name2])) } + { action_respond_info("printer['%s'].%s = %s" + % (name1, name2, printer[name1][name2])) } {% else %} - { printer.gcode.action_respond_info("printer['%s'] = %s" % (name1, printer[name1])) } + { action_respond_info("printer['%s'] = %s" % (name1, printer[name1])) } {% endfor %} {% endfor %} |