Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
4ac71d2a
Unverified
Commit
4ac71d2a
authored
Nov 02, 2022
by
Rotzbua
Committed by
GitHub
Nov 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BLE Client] Fix deadlock if connection loss ... (#7319)
... while readValue
parent
c8da793c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
libraries/BLE/src/BLERemoteCharacteristic.cpp
libraries/BLE/src/BLERemoteCharacteristic.cpp
+2
-0
No files found.
libraries/BLE/src/BLERemoteCharacteristic.cpp
View file @
4ac71d2a
...
...
@@ -247,6 +247,8 @@ void BLERemoteCharacteristic::gattClientEventHandler(esp_gattc_cb_event_t event,
break
;
case
ESP_GATTC_DISCONNECT_EVT
:
// Cleanup semaphores to avoid deadlocks.
m_semaphoreReadCharEvt
.
give
(
1
);
m_semaphoreWriteCharEvt
.
give
(
1
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment