From fc79cf39712a9ab53aeee3b24dbf377b789121c2 Mon Sep 17 00:00:00 2001 From: Manuel <71137295+mverch67@users.noreply.github.com> Date: Sun, 26 Apr 2026 21:35:43 +0200 Subject: [PATCH] fix guard --- src/platform/esp32/main-esp32.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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