From 01d62e30721bedef78c9166ffece5b25ea12d58c Mon Sep 17 00:00:00 2001 From: Sebastian Kliem Date: Fri, 29 Sep 2017 14:35:33 +0200 Subject: fix clearing of vectors and maps() --- src/BLEClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/BLEClient.cpp') diff --git a/src/BLEClient.cpp b/src/BLEClient.cpp index a5d60cf..f9b38c3 100644 --- a/src/BLEClient.cpp +++ b/src/BLEClient.cpp @@ -283,7 +283,7 @@ std::map* BLEClient::getServices() { * and will culminate with an ESP_GATTC_SEARCH_CMPL_EVT when all have been received. */ ESP_LOGD(LOG_TAG, ">> getServices"); - m_servicesMap.empty(); + m_servicesMap.clear(); esp_err_t errRc = esp_ble_gattc_search_service( getGattcIf(), getConnId(), -- cgit v1.2.3