diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-04-24 23:50:41 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-05-05 11:08:12 -0400 |
commit | 310d583413fd54247d827340658f95f20493dee6 (patch) | |
tree | 5f94148fe16256eba30e67ce0e40d759c1177853 | |
parent | 1e992f9d1663b9bed314e2b44ffec913a432278b (diff) | |
download | kutter-310d583413fd54247d827340658f95f20493dee6.tar.gz kutter-310d583413fd54247d827340658f95f20493dee6.tar.xz kutter-310d583413fd54247d827340658f95f20493dee6.zip |
gcode_button: Use new GCodeCommand wrappers
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/extras/gcode_button.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/gcode_button.py b/klippy/extras/gcode_button.py index bb2bb458..95403b57 100644 --- a/klippy/extras/gcode_button.py +++ b/klippy/extras/gcode_button.py @@ -23,8 +23,8 @@ class GCodeButton: desc=self.cmd_QUERY_BUTTON_help) cmd_QUERY_BUTTON_help = "Report on the state of a button" - def cmd_QUERY_BUTTON(self, params): - self.gcode.respond_info(self.name + ": " + self.get_status()['state']) + def cmd_QUERY_BUTTON(self, gcmd): + gcmd.respond_info(self.name + ": " + self.get_status()['state']) def button_callback(self, eventtime, state): self.last_state = state |