From be91c1229fdc8aae5f18549c6f565f33b32b4719 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 12 Mar 2017 22:02:32 -0400 Subject: gcode: Eliminate build_config() method Lookup the printer components during the set_printer_ready() callback. Signed-off-by: Kevin O'Connor --- klippy/klippy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'klippy/klippy.py') diff --git a/klippy/klippy.py b/klippy/klippy.py index 412477ad..9b366a3b 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -100,6 +100,7 @@ class Printer: self.startup_state = startup_state self.software_version = version self.reactor = reactor.Reactor() + self.objects = {} self.gcode = gcode.GCodeParser(self, input_fd, is_fileinput) self.stats_timer = self.reactor.register_timer(self.stats) self.connect_timer = self.reactor.register_timer( @@ -111,7 +112,6 @@ class Printer: self.run_result = None self.fileconfig = None self.mcu = None - self.objects = {} def set_fileoutput(self, debugoutput, dictionary): self.debugoutput = debugoutput self.dictionary = dictionary @@ -152,7 +152,6 @@ class Printer: def build_config(self): for oname in sorted(self.objects.keys()): self.objects[oname].build_config() - self.gcode.build_config() self.mcu.build_config() def validate_config(self): valid_sections = dict([(s, 1) for s, o in self.all_config_options]) -- cgit v1.2.3-70-g09d2