1
0
Fork 0

Fix race condition, connect->disconnect->discovery

This commit is contained in:
James A. Jerkins 2021-09-01 22:48:01 -05:00
parent 00a3f84ea7
commit d69a8e84fa

View file

@ -250,8 +250,10 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
}
void NimbleController::StartDiscovery() {
if (connectionHandle != BLE_HS_CONN_HANDLE_NONE) {
serviceDiscovery.StartDiscovery(connectionHandle);
}
}
uint16_t NimbleController::connHandle() {
return connectionHandle;