diff --git a/CHANGELOG.md b/CHANGELOG.md index b42d01341..22f56628b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Port for Renesas RA6M4 with DA14531 - example: gatt_streamer_server and le_streamer_client report DLE and PHY changes - gatt_client: queue requests with gatt_client_request_to_send_gatt_query and gatt_client_request_to_write_without_response +- esp32: warn about unsuitable sdkconfig ## Fixed - hci: fix set extended scan response diff --git a/port/esp32/template/main/main.c b/port/esp32/template/main/main.c index 7cba4ba03..f43d6d63a 100644 --- a/port/esp32/template/main/main.c +++ b/port/esp32/template/main/main.c @@ -45,6 +45,18 @@ #include +// warn about unsuitable sdkconfig +#include "sdkconfig.h" +#if !CONFIG_BT_ENABLED +#error "Bluetooth disabled - please set CONFIG_BT_ENABLED via menuconfig -> Component Config -> Bluetooth -> [x] Bluetooth" +#endif +#if !CONFIG_BT_CONTROLLER_ONLY +#error "Different Bluetooth Host stack selected - please set CONFIG_BT_CONTROLLER_ONLY via menuconfig -> Component Config -> Bluetooth -> Host -> Disabled" +#endif +#if !CONFIG_BT_CONTROLLER_ENABLED +#error "Different Bluetooth Host stack selected - please set CONFIG_BT_CONTROLLER_ENABLED via menuconfig -> Component Config -> Bluetooth -> Controller -> Enabled" +#endif + extern int btstack_main(int argc, const char * argv[]); int app_main(void){