menu: Use new GCodeCommand wrappers

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-04-25 00:29:54 -04:00
parent 1fd76b7393
commit a68bb935df
1 changed files with 3 additions and 3 deletions

View File

@ -1575,7 +1575,7 @@ class MenuManager:
cmd_DO_help = "Menu do things" cmd_DO_help = "Menu do things"
def cmd_DO_DUMP(self, params): def cmd_DO_DUMP(self, gcmd):
for key1 in self.parameters: for key1 in self.parameters:
if type(self.parameters[key1]) == dict: if type(self.parameters[key1]) == dict:
for key2 in self.parameters[key1]: for key2 in self.parameters[key1]:
@ -1583,10 +1583,10 @@ class MenuManager:
key1, key2, key1, key2,
self.parameters[key1].get(key2) self.parameters[key1].get(key2)
) )
self.gcode.respond_info(msg) gcmd.respond_info(msg)
else: else:
msg = "{0} = {1}".format(key1, self.parameters.get(key1)) msg = "{0} = {1}".format(key1, self.parameters.get(key1))
self.gcode.respond_info(msg) gcmd.respond_info(msg)
# buttons & encoder callbacks # buttons & encoder callbacks
def encoder_cw_callback(self, eventtime): def encoder_cw_callback(self, eventtime):