From 9f7ff009c6c75c5b9d8b8452e4517d1ae776285e Mon Sep 17 00:00:00 2001 From: buxtronix Date: Tue, 3 Nov 2020 05:20:16 +1100 Subject: [PATCH] Fix parameter to BLEDevice::updatePeerDevice (#4133) ::addPeerDevice and ::removePeerDevice are called with m_appId, so should ::updatePeerDevice as all use the same parameter for the underlying map's key. --- libraries/BLE/src/BLEClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/BLE/src/BLEClient.cpp b/libraries/BLE/src/BLEClient.cpp index 06bbc1d6..608b1bf3 100644 --- a/libraries/BLE/src/BLEClient.cpp +++ b/libraries/BLE/src/BLEClient.cpp @@ -237,7 +237,7 @@ void BLEClient::gattClientEventHandler( case ESP_GATTC_CONNECT_EVT: { if (evtParam->connect.conn_id != getConnId()) break; - BLEDevice::updatePeerDevice(this, true, m_gattc_if); + BLEDevice::updatePeerDevice(this, true, m_appId); esp_err_t errRc = esp_ble_gattc_send_mtu_req(gattc_if, evtParam->connect.conn_id); if (errRc != ESP_OK) { log_e("esp_ble_gattc_send_mtu_req: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));