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/webhooks.py | |
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/webhooks.py')
-rw-r--r-- | klippy/webhooks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/webhooks.py b/klippy/webhooks.py index 322f61c4..118894cd 100644 --- a/klippy/webhooks.py +++ b/klippy/webhooks.py @@ -393,7 +393,7 @@ class QueryStatusHelper: cres = {} for ri in req_items: rd = res.get(ri, None) - if not callable(rd) and (is_query or rd != lres.get(ri)): + if is_query or rd != lres.get(ri): cres[ri] = rd if cres or is_query: cquery[obj_name] = cres |