summaryrefslogtreecommitdiff
path: root/src/BLEDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/BLEDevice.cpp')
-rw-r--r--src/BLEDevice.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/BLEDevice.cpp b/src/BLEDevice.cpp
index 1f39caf..cb2db41 100644
--- a/src/BLEDevice.cpp
+++ b/src/BLEDevice.cpp
@@ -27,9 +27,13 @@
#include "BLEClient.h"
#include "BLEUtils.h"
#include "GeneralUtils.h"
-#if defined(ARDUINO_ARCH_ESP32) && defined(CONFIG_ARDUHAL_ESP_LOG)
-#include "esp32-hal-log.h"
+
+#if defined(ARDUINO_ARCH_ESP32)
#include "esp32-hal-bt.h"
+#endif
+
+#if defined(CONFIG_ARDUHAL_ESP_LOG)
+#include "esp32-hal-log.h"
#define LOG_TAG ""
#else
#include "esp_log.h"