diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-12-24 12:33:56 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-12-24 12:33:56 -0500 |
commit | a9444d3399e29a1ce91fc60bdaf38e9ed78f1414 (patch) | |
tree | 8e8bc0b62d0b495b39e46e3920cf7a04b4009a5a /klippy/mcu.py | |
parent | 4a16053c002ffb88cd7bdf4dbe9e8a36018dab8d (diff) | |
download | kutter-a9444d3399e29a1ce91fc60bdaf38e9ed78f1414.tar.gz kutter-a9444d3399e29a1ce91fc60bdaf38e9ed78f1414.tar.xz kutter-a9444d3399e29a1ce91fc60bdaf38e9ed78f1414.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r-- | klippy/mcu.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |