Skip to content

Commit 673f453

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

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

cores/esp32/esp32-hal-bt.c

+15
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

-4
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)