From a17f3199bdeff8d2b9aba6d2c0d005471e974a84 Mon Sep 17 00:00:00 2001 From: h2zero Date: Sat, 15 Aug 2020 07:49:32 -0600 Subject: [PATCH] Fix client passkey callback value not sent to server. --- src/NimBLEClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NimBLEClient.cpp b/src/NimBLEClient.cpp index 4bb486e..29c9692 100644 --- a/src/NimBLEClient.cpp +++ b/src/NimBLEClient.cpp @@ -894,7 +894,7 @@ uint16_t NimBLEClient::getMTU() { pkey.passkey = NimBLEDevice::m_securityCallbacks->onPassKeyRequest(); ///////////////////////////////////////////// } else { - client->m_pClientCallbacks->onPassKeyRequest(); + pkey.passkey = client->m_pClientCallbacks->onPassKeyRequest(); } rc = ble_sm_inject_io(event->passkey.conn_handle, &pkey);