diff --git a/klippy/mcu.py b/klippy/mcu.py index e50a6cb3..7afea412 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -457,11 +457,11 @@ class MCU: config_params = self.serial.send_with_response(msg, 'config') if self._config_crc != config_params['crc']: raise error("Printer CRC does not match config") - logging.info("Configured") + move_count = config_params['move_count'] + logging.info("Configured (%d moves)" % (move_count,)) stepqueues = tuple(s._stepqueue for s in self._steppers) self._steppersync = self.ffi_lib.steppersync_alloc( - self.serial.serialqueue, stepqueues, len(stepqueues), - config_params['move_count']) + self.serial.serialqueue, stepqueues, len(stepqueues), move_count) for cb in self._init_callbacks: cb() # Config creation helpers 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: