hci: fix compile for le peripheral only role

This commit is contained in:
Matthias Ringwald 2020-08-17 22:22:01 +02:00
parent d8d859610c
commit f75e06ade5

View File

@ -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);