diff --git a/src/platform/esp32/main-esp32.cpp b/src/platform/esp32/main-esp32.cpp index 5f3449554..7dfcfa141 100644 --- a/src/platform/esp32/main-esp32.cpp +++ b/src/platform/esp32/main-esp32.cpp @@ -4,10 +4,11 @@ #include "esp_task_wdt.h" #include "main.h" -#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !MESHTASTIC_EXCLUDE_BLUETOOTH -#include "nimble/NimbleBluetooth.h" +#if !MESHTASTIC_EXCLUDE_BLUETOOTH #if defined(CONFIG_IDF_TARGET_ESP32P4) #include "bluetooth/HostedBluetooth.h" +#elif !defined(CONFIG_IDF_TARGET_ESP32S2) +#include "nimble/NimbleBluetooth.h" #endif #endif