From b5ecaedbf18ebc84e680a3a62e47f088c51fa214 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 19 Apr 2023 12:28:26 +0200 Subject: [PATCH] hci: fix emit of GAP_SUBEVENT_CIS_CREATED --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 7d913c8a8..28351428b 100644 --- a/src/hci.c +++ b/src/hci.c @@ -3042,7 +3042,6 @@ static void handle_command_complete_event(uint8_t * packet, uint16_t size){ hci_stack->iso_active_operation_type = HCI_ISO_TYPE_INVALID; // lookup CIS by state - btstack_linked_list_iterator_t it; btstack_linked_list_iterator_init(&it, &hci_stack->iso_streams); while (btstack_linked_list_iterator_has_next(&it)){ hci_iso_stream_t * iso_stream = (hci_iso_stream_t *) btstack_linked_list_iterator_next(&it); @@ -3082,6 +3081,7 @@ static void handle_command_complete_event(uint8_t * packet, uint16_t size){ // if outgoing has been setup, or incoming was setup but outgoing not required if ((cis_direction == 1) || (outgoing_needed == false)){ // lookup iso stream by cig/cis + btstack_linked_list_iterator_init(&it, &hci_stack->iso_streams); while (btstack_linked_list_iterator_has_next(&it)) { hci_iso_stream_t *iso_stream = (hci_iso_stream_t *) btstack_linked_list_iterator_next(&it); if ((iso_stream->group_id == cig->cig_id) && (iso_stream->stream_id == cis_index)){