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 673f453

Browse filesBrowse files
committed
BT define the hal methods even if BT is disabled (but return false)
1 parent 768e57f commit 673f453
Copy full SHA for 673f453

File tree

Expand file treeCollapse file tree

2 files changed

+15
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+15
-4
lines changed

‎cores/esp32/esp32-hal-bt.c

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-bt.c
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,20 @@ bool btStop(){
6464
return false;
6565
}
6666

67+
#else
68+
bool btStarted()
69+
{
70+
return false;
71+
}
72+
73+
bool btStart()
74+
{
75+
return false;
76+
}
77+
78+
bool btStop()
79+
{
80+
return false;
81+
}
6782
#endif
6883

‎cores/esp32/esp32-hal-bt.h

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-bt.h
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
#include "esp32-hal.h"
1919

20-
#if CONFIG_BT_ENABLED
21-
2220
#ifdef __cplusplus
2321
extern "C" {
2422
#endif
@@ -31,6 +29,4 @@ bool btStop();
3129
}
3230
#endif
3331

34-
#endif
35-
3632
#endif /* _ESP32_ESP32_HAL_BT_H_ */

0 commit comments

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