Skip to content

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

-1
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

+2-1
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

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