From 5eb5841eafccae5ca4b849647d39d7c5e3db9e64 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 4 Nov 2019 23:00:00 -0500 Subject: mcu: Contact and identify all the mcus prior to configuring them Break up the connect phase into two phases - mcu_identify and connect. The first phase will contact all the micro-controllers and obtain the "identify" data dictionaries for them. Once all the micro-controllers have been contacted, then they can be configured. This fixes an issue with FIRMWARE_RESTART not working correctly on multi-mcu setups that use restart_method=command. Signed-off-by: Kevin O'Connor --- klippy/klippy.py | 1 + 1 file changed, 1 insertion(+) (limited to 'klippy/klippy.py') diff --git a/klippy/klippy.py b/klippy/klippy.py index 80e62219..7ef47384 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -132,6 +132,7 @@ class Printer: def _connect(self, eventtime): try: self._read_config() + self.send_event("klippy:mcu_identify") for cb in self.event_handlers.get("klippy:connect", []): if self.state_message is not message_startup: return -- cgit v1.2.3-70-g09d2