mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 23:24:01 -06:00
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>
This commit is contained in:
parent
2d74b3d358
commit
751bff7d38
3 changed files with 17 additions and 4 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue