From 59cc662ff062134ec709e9f7833af9ab239f6987 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 9 Nov 2023 17:30:32 +0100 Subject: [PATCH] test/le-audio: setup advertising and allow to receive periodic advertising sync transfers --- test/le_audio/le_audio_broadcast_sink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/le_audio/le_audio_broadcast_sink.c b/test/le_audio/le_audio_broadcast_sink.c index fe203f23b..1ae445f93 100644 --- a/test/le_audio/le_audio_broadcast_sink.c +++ b/test/le_audio/le_audio_broadcast_sink.c @@ -385,6 +385,10 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack switch(btstack_event_state_get_state(packet)) { case HCI_STATE_WORKING: app_state = APP_IDLE; + // setup advertising and allow to receive periodic advertising sync transfers + setup_advertising(); + gap_periodic_advertising_sync_transfer_set_default_parameters(2, 0, 0x2000, 0); + #ifdef ENABLE_DEMO_MODE start_scanning(); #else