summaryrefslogtreecommitdiff
path: root/src/BLEClient.cpp
diff options
context:
space:
mode:
authorSebastian Kliem <sebastian-kliem@live.de>2017-09-29 14:35:33 +0200
committerSebastian Kliem <sebastian-kliem@live.de>2017-09-29 14:35:33 +0200
commit01d62e30721bedef78c9166ffece5b25ea12d58c (patch)
tree98e810ce87dbd3310a1bda62eed18913787a7c1c /src/BLEClient.cpp
parentMerge pull request #3 from ciotlosm/master (diff)
downloadthermostat-01d62e30721bedef78c9166ffece5b25ea12d58c.tar.gz
thermostat-01d62e30721bedef78c9166ffece5b25ea12d58c.tar.bz2
thermostat-01d62e30721bedef78c9166ffece5b25ea12d58c.zip
fix clearing of vectors and maps()
Diffstat (limited to 'src/BLEClient.cpp')
-rw-r--r--src/BLEClient.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::string, BLERemoteService*>* 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(),