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
e57de64a
Commit
e57de64a
authored
Jun 05, 2019
by
HanCheol Cho
Committed by
Me No Dev
Jun 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed multi_heap_free failed during setting the value of the characteristic in BLE Library. (#2789)
parent
fd5a2f08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
libraries/BLE/src/BLECharacteristic.cpp
libraries/BLE/src/BLECharacteristic.cpp
+2
-0
libraries/BLE/src/BLECharacteristic.h
libraries/BLE/src/BLECharacteristic.h
+1
-0
No files found.
libraries/BLE/src/BLECharacteristic.cpp
View file @
e57de64a
...
...
@@ -628,7 +628,9 @@ void BLECharacteristic::setValue(uint8_t* data, size_t length) {
log_e
(
"Size %d too large, must be no bigger than %d"
,
length
,
ESP_GATT_MAX_ATTR_LEN
);
return
;
}
m_semaphoreSetValue
.
take
();
m_value
.
setValue
(
data
,
length
);
m_semaphoreSetValue
.
give
();
log_v
(
"<< setValue"
);
}
// setValue
...
...
libraries/BLE/src/BLECharacteristic.h
View file @
e57de64a
...
...
@@ -117,6 +117,7 @@ private:
void
setHandle
(
uint16_t
handle
);
FreeRTOS
::
Semaphore
m_semaphoreCreateEvt
=
FreeRTOS
::
Semaphore
(
"CreateEvt"
);
FreeRTOS
::
Semaphore
m_semaphoreConfEvt
=
FreeRTOS
::
Semaphore
(
"ConfEvt"
);
FreeRTOS
::
Semaphore
m_semaphoreSetValue
=
FreeRTOS
::
Semaphore
(
"SetValue"
);
};
// BLECharacteristic
...
...
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