Skip to content

Commit 1bd04ba

Browse files
Update libraries/BLE/src/BLEClient.cpp
Co-authored-by: Lucas Saavedra Vaz <[email protected]>
1 parent e26e499 commit 1bd04ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: libraries/BLE/src/BLEClient.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ bool BLEClient::connect(BLEAddress address, esp_ble_addr_type_t type, uint32_t t
154154
}
155155

156156
bool got_sem = m_semaphoreOpenEvt.timedWait("connect", timeoutMs); // Wait for the connection to complete.
157-
rc = m_semaphoreOpenEvt.value();
158-
// check the status of the connection and cleanup in case of failure
159-
if (!got_sem || rc != ESP_GATT_OK) {
157+
rc = m_semaphoreOpenEvt.value();
158+
// check the status of the connection and cleanup in case of failure
159+
if (!got_sem || rc != ESP_GATT_OK) {
160160
BLEDevice::removePeerDevice(m_appId, true);
161161
esp_ble_gattc_app_unregister(m_gattc_if);
162162
m_gattc_if = ESP_GATT_IF_NONE;

0 commit comments

Comments
 (0)