Skip to content

Commit 9f7ff00

Browse files
authored
Fix parameter to BLEDevice::updatePeerDevice (espressif#4133)
::addPeerDevice and ::removePeerDevice are called with m_appId, so should ::updatePeerDevice as all use the same parameter for the underlying map's key.
1 parent 704b71d commit 9f7ff00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/BLE/src/BLEClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ void BLEClient::gattClientEventHandler(
237237

238238
case ESP_GATTC_CONNECT_EVT: {
239239
if (evtParam->connect.conn_id != getConnId()) break;
240-
BLEDevice::updatePeerDevice(this, true, m_gattc_if);
240+
BLEDevice::updatePeerDevice(this, true, m_appId);
241241
esp_err_t errRc = esp_ble_gattc_send_mtu_req(gattc_if, evtParam->connect.conn_id);
242242
if (errRc != ESP_OK) {
243243
log_e("esp_ble_gattc_send_mtu_req: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));

0 commit comments

Comments
 (0)