diff --git a/src/hci.c b/src/hci.c index ce0ec00ab..6fbf1dac4 100644 --- a/src/hci.c +++ b/src/hci.c @@ -2083,14 +2083,9 @@ static void hci_initializing_event_handler(const uint8_t * packet, uint16_t size return; #endif /* ENABLE_SCO_OVER_HCI */ -// avoid compile error due to duplicate cases: HCI_INIT_W4_BCM_WRITE_SCO_PCM_INT == HCI_INIT_DONE-1 -#if defined(ENABLE_BLE) || defined(ENABLE_LE_DATA_LENGTH_EXTENSION) || defined(ENABLE_LE_CENTRAL) - // Response to command before init done state -> init done - case (HCI_INIT_DONE-1): - hci_stack->substate = HCI_INIT_DONE; - return; -#endif case HCI_INIT_DONE: + // set state if we came here by fall through + hci_stack->substate = HCI_INIT_DONE; return; default: