-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drv/bluetooth_stm32_cc2640: fix broadcast lockup
This changes the command to update advertising data on the Bluetooth chip in the broadcast task to use HCI_LE_setAdvertisingData() instead of GAP_updateAdvertisingData(). It appears there is some sort of memory leak or some such on the Bluetooth chip that causes it to lock up if we call the vendor-specific GAP_updateAdvertisingData() too many times. It appears that we can work around this by calling the standard Bluetooth command HCI_LE_setAdvertisingData() instead. GAP_updateAdvertisingData() would result in two events being sent back from the Bluetooth chip, a status event and a command complete event. With HCI_LE_setAdvertisingData() we only get a command complete event back - with the TI vendor-specific opcode as if we had called GAP_updateAdvertisingData(). Fixes: pybricks/support#1095
- Loading branch information
Showing
5 changed files
with
22 additions
and
9 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
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