8000 Allow Arduino to be run without BT support in IDF · joeybab3/arduino-esp32@b879f80 · GitHub
[go: up one dir, main page]

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 b879f80

Browse files
committed
Allow Arduino to be run without BT support in IDF
Fixes: espressif#343
1 parent a38ffe5 commit b879f80

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ menu "Arduino Configuration"
33
config ENABLE_ARDUINO_DEPENDS
44
bool
55
select LWIP_SO_RCVBUF
6-
select BT_ENABLED
76
select ETHERNET
87
select WIFI_ENABLED
98
select ESP32_PHY_CALIBRATION_AND_DATA_STORAGE

cores/esp32/esp32-hal-bt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
#if CONFIG_BT_ENABLED
1415

1516
#include "esp32-hal-bt.h"
1617

@@ -62,5 +63,5 @@ bool btStop(){
6263
return false;
6364
}
6465

65-
66+
#endif
6667

cores/esp32/esp32-hal-bt.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
#include "esp32-hal.h"
1919

20+
#if CONFIG_BT_ENABLED
21+
2022
#ifdef __cplusplus
2123
extern "C" {
2224
#endif
@@ -29,4 +31,6 @@ bool btStop();
2931
}
3032
#endif
3133

34+
#endif
35+
3236
#endif /* _ESP32_ESP32_HAL_BT_H_ */

0 commit comments

Comments
 (0)
0