diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-07-25 19:01:17 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-07-29 11:40:54 -0400 |
commit | 751bff7d3886077bb0b81ad28e9f367e0d5a81eb (patch) | |
tree | 13a103b727d0b7648004d6a51f282e5b129706f6 /klippy/klippy.py | |
parent | 2d74b3d358b52b4bc5a301f6aca05690bd6cb941 (diff) | |
download | kutter-751bff7d3886077bb0b81ad28e9f367e0d5a81eb.tar.gz kutter-751bff7d3886077bb0b81ad28e9f367e0d5a81eb.tar.xz kutter-751bff7d3886077bb0b81ad28e9f367e0d5a81eb.zip |
mcu: Delay reset signaling for usb to canbus bridge nodes
An mcu device acting as an "mcu bridge" should only be reset after
other normal devices are reset - otherwise the bridge wont be able to
pass along the reset message to the downstream mcus.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r-- | klippy/klippy.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py index dbd3cd37..8f2caf3b 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -231,8 +231,7 @@ class Printer: run_result = self.run_result try: if run_result == 'firmware_restart': - for n, m in self.lookup_objects(module='mcu'): - m.microcontroller_restart() + self.send_event("klippy:firmware_restart") self.send_event("klippy:disconnect") except: logging.exception("Unhandled exception during post run") |