-
Notifications
You must be signed in to change notification settings - Fork 3k
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
BLE: Fix iteration on connections in CordioGattServer. #8884
Conversation
@lrusinowicz Let me know if the fix suits you. |
uint16_t conn_found = 0; | ||
|
||
while ((conn_found < DM_CONN_MAX) && (conn_id < CONNECTION_ID_LIMIT)) { | ||
for (dmConnId_t conn_id = DM_CONN_MAX; conn_id > DM_CONN_MAX; --conn_id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't DM_CONN_ID_NONE
be used in comparison here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, thanks for the fix @paul-szczepanek-arm
CI started |
Test run: SUCCESSSummary: 4 of 4 test jobs passed |
Description
Fix #8880
Pull request type