gcode_button: Use new GCodeCommand wrappers

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-04-24 23:50:41 -04:00
parent 1e992f9d16
commit 310d583413
1 changed files with 2 additions and 2 deletions

View File

@ -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