gcode_button: Use new GCodeCommand wrappers
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
1e992f9d16
commit
310d583413
|
@ -23,8 +23,8 @@ class GCodeButton:
|
||||||
desc=self.cmd_QUERY_BUTTON_help)
|
desc=self.cmd_QUERY_BUTTON_help)
|
||||||
|
|
||||||
cmd_QUERY_BUTTON_help = "Report on the state of a button"
|
cmd_QUERY_BUTTON_help = "Report on the state of a button"
|
||||||
def cmd_QUERY_BUTTON(self, params):
|
def cmd_QUERY_BUTTON(self, gcmd):
|
||||||
self.gcode.respond_info(self.name + ": " + self.get_status()['state'])
|
gcmd.respond_info(self.name + ": " + self.get_status()['state'])
|
||||||
|
|
||||||
def button_callback(self, eventtime, state):
|
def button_callback(self, eventtime, state):
|
||||||
self.last_state = state
|
self.last_state = state
|
||||||
|
|
Loading…
Reference in New Issue