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
f1eacf75
Unverified
Commit
f1eacf75
authored
Aug 23, 2023
by
Me No Dev
Committed by
GitHub
Aug 23, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8551 from SuGlider/btInUse
Fixes ESP32 BT Memory Releasing
parents
099b432d
c7839182
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
cores/esp32/esp32-hal-bt.c
cores/esp32/esp32-hal-bt.c
+4
-0
cores/esp32/esp32-hal-misc.c
cores/esp32/esp32-hal-misc.c
+6
-0
No files found.
cores/esp32/esp32-hal-bt.c
View file @
f1eacf75
...
...
@@ -16,8 +16,12 @@
#ifdef CONFIG_BT_ENABLED
#if CONFIG_IDF_TARGET_ESP32
bool
btInUse
(){
return
true
;
}
#else
// user may want to change it to free resources
__attribute__
((
weak
))
bool
btInUse
(){
return
true
;
}
#endif
#include "esp_bt.h"
...
...
cores/esp32/esp32-hal-misc.c
View file @
f1eacf75
...
...
@@ -209,9 +209,15 @@ bool verifyRollbackLater() { return false; }
#endif
#ifdef CONFIG_BT_ENABLED
#if CONFIG_IDF_TARGET_ESP32
//overwritten in esp32-hal-bt.c
bool
btInUse
()
__attribute__
((
weak
));
bool
btInUse
(){
return
false
;
}
#else
//from esp32-hal-bt.c
extern
bool
btInUse
();
#endif
#endif
void
initArduino
()
{
...
...
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