configfile: Use new GCodeCommand wrappers

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-04-24 21:21:58 -04:00
parent 9b6010dc7b
commit c186766708
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ class PrinterConfig:
"with included value" % (section, option)
raise gcode.error(msg)
cmd_SAVE_CONFIG_help = "Overwrite config file and restart"
def cmd_SAVE_CONFIG(self, params):
def cmd_SAVE_CONFIG(self, gcmd):
if not self.autosave.fileconfig.sections():
return
gcode = self.printer.lookup_object('gcode')