menu: Use new GCodeCommand wrappers
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
1fd76b7393
commit
a68bb935df
|
@ -1575,7 +1575,7 @@ class MenuManager:
|
|||
|
||||
cmd_DO_help = "Menu do things"
|
||||
|
||||
def cmd_DO_DUMP(self, params):
|
||||
def cmd_DO_DUMP(self, gcmd):
|
||||
for key1 in self.parameters:
|
||||
if type(self.parameters[key1]) == dict:
|
||||
for key2 in self.parameters[key1]:
|
||||
|
@ -1583,10 +1583,10 @@ class MenuManager:
|
|||
key1, key2,
|
||||
self.parameters[key1].get(key2)
|
||||
)
|
||||
self.gcode.respond_info(msg)
|
||||
gcmd.respond_info(msg)
|
||||
else:
|
||||
msg = "{0} = {1}".format(key1, self.parameters.get(key1))
|
||||
self.gcode.respond_info(msg)
|
||||
gcmd.respond_info(msg)
|
||||
|
||||
# buttons & encoder callbacks
|
||||
def encoder_cw_callback(self, eventtime):
|
||||
|
|
Loading…
Reference in New Issue