Skip to content
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

application: nrf5340_audio: Fix num_conn not initialized #12019

Merged

Conversation

rick1082
Copy link
Contributor

Fixed num_conn not initialized properly which could cause the CIS gateway cannot establish connection properly.

@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Aug 11, 2023
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Aug 11, 2023

Test specification

CI/Jenkins/NRF

  • Integration Platforms

CI/Jenkins/integration

Test Module File based changes Manually selected West overwrite
test-sdk-audio X

Detailed information of selected test modules

Note: This message is automatically posted and updated by the CI

@alexsven alexsven removed the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Aug 11, 2023
@alexsven alexsven requested a review from cvinayak August 11, 2023 12:14
Copy link
Contributor

@cvinayak cvinayak left a comment

Choose a reason for hiding this comment

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

nitpick otherwise ok.

@@ -75,7 +75,7 @@ static void connected_cb(struct bt_conn *conn, uint8_t err)
{
int ret;
char addr[BT_ADDR_LE_STR_LEN];
uint8_t num_conn;
uint8_t num_conn = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
uint8_t num_conn = 0;
uint8_t num_conn = 0U;

Copy link
Contributor

Choose a reason for hiding this comment

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

We generally do not use 'U' in the audio application

Fix num_conn not initialized properly which could cause
the CIS gateway cannot establish connection properly.
Fix zbus publish wait time in le_audio_event_publish.

Signed-off-by: Jui-Chou Chung <jui-chou.chung@nordicsemi.no>
@rick1082 rick1082 force-pushed the OCT-NONE-initialize-num-conn-properly branch from 5dcf6b8 to 1a7db0c Compare August 11, 2023 13:25
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Aug 11, 2023
@nordicjm nordicjm merged commit 1899750 into nrfconnect:main Aug 11, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants