Skip to content

Commit

Permalink
tests: btp_bap: Fix using wrong index
Browse files Browse the repository at this point in the history
Fix using cig_id instead of index i

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information
finikorg authored and carlescufi committed Sep 1, 2023
1 parent 2996897 commit 60e8d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bluetooth/tester/src/btp_bap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ static int client_create_unicast_group(struct audio_connection *audio_conn, uint
* in the right order.
*/
for (uint8_t i = 0; i < cig_id; i++) {
if (cigs[cig_id] == NULL) {
if (cigs[i] == NULL) {
return -EINVAL;
}
}
Expand Down

0 comments on commit 60e8d9d

Please sign in to comment.