-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys/program_stop: add hack to workaround Bluetooth lockup
Many Bluetooth tasks can get stuck (can't be canceled) if the Bluetooth chip crashes. Adding checks for this at every yield point would be very expensive in terms of code size. So for now, we just add another hack to cancel all tasks on shutdown to avoid undefined behavior. In some cases, this undefined behavior was causing the hub to not power off unless the batteries were removed. Issue: pybricks/support#1095
- Loading branch information
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters