-
-
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 ble observe
The Bluetooth chip on the City and Technic hubs will stop receiving advertisements after a while when observing. It isn't clear why this is happening, but it seems to that there is a bug in the Bluetooth chip firmware that causes it to start filtering out advertisements from an individual advertiser after a while (i.e. it can still be receiving advertisements from one device but stops receiving them from another). Eventually it will stop receiving advertisements from all devices. To work around this, we restart the observation process every 10 seconds. In testing, we were never able to trigger the bug in less than 25 seconds or so. Therefore, 10 seconds should be more than enough to ensure that we never miss an advertisement. Fixes: pybricks/support#1096
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
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