From 8c8b9b18120ddba92551f8f07e2407f9d190c9db Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 4 Aug 2020 15:49:40 -0400 Subject: gcode: Introduce add_early_printer_objects() Create the initial gcode class via new module level add_early_printer_objects() function. Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'klippy/gcode.py') diff --git a/klippy/gcode.py b/klippy/gcode.py index 2b9c8cc2..32c0fa4f 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -719,3 +719,6 @@ class GCodeParser: if cmd in self.gcode_help: cmdhelp.append("%-10s: %s" % (cmd, self.gcode_help[cmd])) gcmd.respond_info("\n".join(cmdhelp), log=False) + +def add_early_printer_objects(printer): + printer.add_object('gcode', GCodeParser(printer)) -- cgit v1.2.3-70-g09d2