-
-
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.
drv/bluetooth_stm32_bluenrg: fix lost data in send
When sending large amounts of data quickly, some data was being lost. Although we had a retry when BLE_STATUS_INSUFFICIENT_RESOURCES was received, it seems that repeated calls immediately after that lead to lost data (and sometimes duplicated data). It turns out, the BlueNRG chip has an event that says when it is ready again after a BLE_STATUS_INSUFFICIENT_RESOURCES, so we can use that event to wait instead of doing multiple failed retries. There are still some issues with data corruption/loss but this is a significant improvement nonetheless. Issue: pybricks/support#324
- Loading branch information
Showing
2 changed files
with
15 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