From 6c0e6a2b2c2ef5980e225ff83843bf763185165b Mon Sep 17 00:00:00 2001 From: h2zero Date: Mon, 13 Apr 2020 19:18:33 -0600 Subject: [PATCH] Clean up logs. --- src/NimBLEClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NimBLEClient.cpp b/src/NimBLEClient.cpp index 29582dc..3930acf 100644 --- a/src/NimBLEClient.cpp +++ b/src/NimBLEClient.cpp @@ -139,9 +139,9 @@ bool NimBLEClient::connect(NimBLEAddress address, uint8_t type, bool refreshServ ble_addr_t peerAddrt; memcpy(&peerAddrt.val, address.getNative(),6); peerAddrt.type = type; - NIMBLE_LOGE(LOG_TAG, "taking connect semaphore"); + m_semaphoreOpenEvt.take("connect"); - NIMBLE_LOGE(LOG_TAG, "taken"); + /** Try to connect the the advertiser. Allow 30 seconds (30000 ms) for * timeout (default value of m_connectTimeout). * Loop on BLE_HS_EBUSY if the scan hasn't stopped yet.