We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 083db16 commit 5548fbeCopy full SHA for 5548fbe
cores/esp32/esp32-hal-bt.c
@@ -16,7 +16,8 @@
16
17
#ifdef CONFIG_BT_ENABLED
18
19
-bool btInUse(){ return true; }
+// user may want to change it to free resources
20
+__attribute__((weak)) bool btInUse(){ return true; }
21
22
#include "esp_bt.h"
23
cores/esp32/esp32-hal-misc.c
@@ -209,9 +209,8 @@ bool verifyRollbackLater() { return false; }
209
#endif
210
211
212
-//overwritten in esp32-hal-bt.c
213
-bool btInUse() __attribute__((weak));
214
-bool btInUse(){ return false; }
+//from esp32-hal-bt.c
+extern bool btInUse();
215
216
217
void initArduino()
0 commit comments