Skip to content

Off-by-one error for usage of MAX_TX_IN_PROGRESS #1821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2019

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Apr 23, 2019

There is a maximum number of BLE notify messages that can be queued. We should wait when this queue is full. The check for queue full was off by one.

This is a minor issue: usually this queue does not fill up unless the central receiving the notifications falls behind, or the data is being sent too fast.

@dhalbert dhalbert requested a review from tannewt April 23, 2019 02:09
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@dhalbert dhalbert merged commit 4a25115 into adafruit:master Apr 23, 2019
@dhalbert dhalbert deleted the ble-notify-max branch May 28, 2019 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants