Fix client passkey callback value not sent to server.

This commit is contained in:
h2zero 2020-08-15 07:49:32 -06:00
parent 492bcf6f78
commit a17f3199bd

View file

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