From d9b049aa86a4fb131faa6863784451dffcc37778 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Thu, 5 Jun 2014 05:54:00 +0000 Subject: [PATCH] emit disconnection_complete on gap_disconnect --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 741042d0f..71f0a6e2d 100644 --- a/src/hci.c +++ b/src/hci.c @@ -2256,7 +2256,7 @@ le_command_status_t le_central_connect_cancel(){ le_command_status_t gap_disconnect(hci_con_handle_t handle){ hci_connection_t * conn = hci_connection_for_handle(handle); if (!conn){ - hci_emit_le_connection_complete(conn, 0); + hci_emit_disconnection_complete(conn, 0); return BLE_PERIPHERAL_OK; } conn->state = SEND_DISCONNECT;