mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-07 16:20:19 +00:00
hci: fix compile without ENABLE_BLE
This commit is contained in:
parent
e68aec34d6
commit
2c68f1640c
@ -1409,14 +1409,15 @@ static void hci_initializing_event_handler(uint8_t * packet, uint16_t size){
|
|||||||
case HCI_INIT_W4_SET_EVENT_MASK:
|
case HCI_INIT_W4_SET_EVENT_MASK:
|
||||||
// skip Classic init commands for LE only chipsets
|
// skip Classic init commands for LE only chipsets
|
||||||
if (!hci_classic_supported()){
|
if (!hci_classic_supported()){
|
||||||
|
#ifdef ENABLE_BLE
|
||||||
if (hci_le_supported()){
|
if (hci_le_supported()){
|
||||||
hci_stack->substate = HCI_INIT_LE_READ_BUFFER_SIZE; // skip all classic command
|
hci_stack->substate = HCI_INIT_LE_READ_BUFFER_SIZE; // skip all classic command
|
||||||
return;
|
return;
|
||||||
} else {
|
|
||||||
log_error("Neither BR/EDR nor LE supported");
|
|
||||||
hci_init_done();
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
log_error("Neither BR/EDR nor LE supported");
|
||||||
|
hci_init_done();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (!gap_ssp_supported()){
|
if (!gap_ssp_supported()){
|
||||||
hci_stack->substate = HCI_INIT_WRITE_PAGE_TIMEOUT;
|
hci_stack->substate = HCI_INIT_WRITE_PAGE_TIMEOUT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user