mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-15 21:40:22 +00:00
use internal hci_send_cmd instead of client bt_send_cmd
This commit is contained in:
parent
67a3e8ec46
commit
6ad890d319
@ -848,7 +848,7 @@ void hci_run(){
|
||||
if (connection){
|
||||
log_dbg("HCI_STATE_HALTING, connection %u, handle %u\n", (int) connection, connection->con_handle);
|
||||
// send disconnect
|
||||
bt_send_cmd(&hci_disconnect, connection->con_handle, 0x13); // remote closed connection
|
||||
hci_send_cmd(&hci_disconnect, connection->con_handle, 0x13); // remote closed connection
|
||||
|
||||
// send disconnected event right away - causes higher layer connections to get closed, too.
|
||||
hci_shutdown_connection(connection);
|
||||
@ -870,7 +870,7 @@ void hci_run(){
|
||||
connection = (hci_connection_t *) hci_stack.connections;
|
||||
if (connection){
|
||||
// send disconnect
|
||||
bt_send_cmd(&hci_disconnect, connection->con_handle, 0x13); // remote closed connection
|
||||
hci_send_cmd(&hci_disconnect, connection->con_handle, 0x13); // remote closed connection
|
||||
|
||||
// send disconnected event right away - causes higher layer connections to get closed, too.
|
||||
hci_shutdown_connection(connection);
|
||||
|
Loading…
x
Reference in New Issue
Block a user