diff --git a/example/a2dp_source_demo.c b/example/a2dp_source_demo.c index ce94febf9..c2d9c6e2f 100644 --- a/example/a2dp_source_demo.c +++ b/example/a2dp_source_demo.c @@ -523,7 +523,7 @@ static void hci_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *p switch (hci_event_packet_get_type(packet)){ #ifndef HAVE_BTSTACK_STDIN - case BTSTACK_EVENT_STATE): + case BTSTACK_EVENT_STATE: if (btstack_event_state_get_state(packet) != HCI_STATE_WORKING) return; a2dp_source_demo_start_scanning(); break;