Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4ac71d2

Browse filesBrowse files
authored
[BLE Client] Fix deadlock if connection loss ... (espressif#7319)
... while readValue
1 parent c8da793 commit 4ac71d2
Copy full SHA for 4ac71d2

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎libraries/BLE/src/BLERemoteCharacteristic.cpp

Copy file name to clipboardExpand all lines: libraries/BLE/src/BLERemoteCharacteristic.cpp
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ void BLERemoteCharacteristic::gattClientEventHandler(esp_gattc_cb_event_t event,
247247
break;
248248

249249
case ESP_GATTC_DISCONNECT_EVT:
250+
// Cleanup semaphores to avoid deadlocks.
251+
m_semaphoreReadCharEvt.give(1);
250252
m_semaphoreWriteCharEvt.give(1);
251253
break;
252254

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.