Skip to content

Commit

Permalink
host/ble_audio.c: fix ble_audio_adv_parse_broadcast_announcement
Browse files Browse the repository at this point in the history
data->success was set to false at every entry to the funcion. That made
the valid advertising payload fail after parsing
BLE_BROADCAST_PUB_ANNOUNCEMENT_SVC_UUID - final break in block was
reached but the success set in parsing
BLE_BROADCAST_AUDIO_ANNOUNCEMENT_SVC_UUID was cleared.
  • Loading branch information
KKopyscinski committed Apr 4, 2024
1 parent 675452b commit 0c6f2fe
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nimble/host/audio/src/ble_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ ble_audio_adv_parse_broadcast_announcement(const struct ble_hs_adv_field *field,

event = &data->event.broadcast_announcement;

data->success = false;

switch (field->type) {
case BLE_HS_ADV_TYPE_SVC_DATA_UUID16:
if (value_len < 2) {
Expand Down

0 comments on commit 0c6f2fe

Please sign in to comment.