mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 15:07:33 -06:00
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>
This commit is contained in:
parent
4a16053c00
commit
a9444d3399
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue