diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-11-04 23:00:00 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-06 10:35:24 -0500 |
commit | 5eb5841eafccae5ca4b849647d39d7c5e3db9e64 (patch) | |
tree | b9a86e9401e58a52cfe35dfd58aa6c0a5e027bce /klippy/klippy.py | |
parent | 0b90337d59183348b66457b7ec09601720a8568f (diff) | |
download | kutter-5eb5841eafccae5ca4b849647d39d7c5e3db9e64.tar.gz kutter-5eb5841eafccae5ca4b849647d39d7c5e3db9e64.tar.xz kutter-5eb5841eafccae5ca4b849647d39d7c5e3db9e64.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r-- | klippy/klippy.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |