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