From a9444d3399e29a1ce91fc60bdaf38e9ed78f1414 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 24 Dec 2016 12:33:56 -0500 Subject: mcu: Log the MCU configuration during connect phase Log the constants reported by the MCU and log the number of move items allocated after configuration. Signed-off-by: Kevin O'Connor --- klippy/serialhdl.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'klippy/serialhdl.py') diff --git a/klippy/serialhdl.py b/klippy/serialhdl.py index 2e4bc467..f09c4cd1 100644 --- a/klippy/serialhdl.py +++ b/klippy/serialhdl.py @@ -88,6 +88,8 @@ class SerialReader: self.register_callback(self.handle_unknown, '#unknown') logging.info("Loaded %d commands (%s)" % ( len(msgparser.messages_by_id), msgparser.version)) + logging.info("MCU config: %s" % (" ".join( + ["%s=%s" % (k, v) for k, v in msgparser.config.items()]))) # Setup for runtime mcu_baud = float(msgparser.config.get('SERIAL_BAUD', 0.)) if mcu_baud: -- cgit v1.2.3-70-g09d2