Skip to content

Commit 208f447

Browse files
Thalleycarlescufi
authored andcommitted
Bluetooth: Audio: Clear received_base in audio shell on PA sync lost
When the PA sync is lost, we clear the received_base so that once we resync to the PA, we get the BASE again. This is to make it easier to decode and use the BASE again if the sync was lost, as the previous BASE may have been printed a long time before. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
1 parent 1302e95 commit 208f447

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/shell/audio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,7 @@ static void pa_sync_lost(struct bt_audio_broadcast_sink *sink)
11281128
if (default_sink == sink) {
11291129
default_sink = NULL;
11301130
sink_syncable = false;
1131+
(void)memset(&received_base, 0, sizeof(received_base));
11311132
}
11321133
}
11331134
#endif /* CONFIG_BT_AUDIO_BROADCAST_SINK */

0 commit comments

Comments
 (0)