mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-12 12:40:52 +00:00
hci: remove unreachable code
This commit is contained in:
parent
ea04fbd8d7
commit
2c900158a2
10
src/hci.c
10
src/hci.c
@ -6328,15 +6328,6 @@ static bool hci_run_general_pending_commands(void){
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_BLE
|
||||
#ifdef ENABLE_LE_CENTRAL
|
||||
case SEND_CANCEL_CONNECTION:
|
||||
connection->state = SENT_CANCEL_CONNECTION;
|
||||
hci_send_cmd(&hci_le_create_connection_cancel);
|
||||
return true;
|
||||
#endif
|
||||
#endif
|
||||
case SEND_DISCONNECT:
|
||||
connection->state = SENT_DISCONNECT;
|
||||
@ -7526,7 +7517,6 @@ static hci_connection_t * gap_get_outgoing_connection(void){
|
||||
switch (conn->state){
|
||||
case SEND_CREATE_CONNECTION:
|
||||
case SENT_CREATE_CONNECTION:
|
||||
case SENT_CANCEL_CONNECTION:
|
||||
return conn;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user