mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-27 03:39:56 +00:00
hci: fix compile for le peripheral only role
This commit is contained in:
parent
d8d859610c
commit
f75e06ade5
@ -2190,10 +2190,12 @@ static void event_handler(uint8_t *packet, uint16_t size){
|
||||
|
||||
// on error
|
||||
if (status != ERROR_CODE_SUCCESS){
|
||||
#ifdef ENABLE_LE_CENTRAL
|
||||
if (hci_is_le_connection_type(addr_type)){
|
||||
hci_stack->le_connecting_state = LE_CONNECTING_IDLE;
|
||||
hci_stack->le_connecting_request = LE_CONNECTING_IDLE;
|
||||
}
|
||||
#endif
|
||||
// error => outgoing connection failed
|
||||
if (conn != NULL){
|
||||
hci_handle_connection_failed(conn, status);
|
||||
|
Loading…
x
Reference in New Issue
Block a user