Skip to content

Commit 1b4fb15

Browse files
authored
Update BLEDevice.cpp
fix 'btStart' was not declared in this scope
1 parent adcd950 commit 1b4fb15

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/BLEDevice.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@
2727
#include "BLEClient.h"
2828
#include "BLEUtils.h"
2929
#include "GeneralUtils.h"
30-
#if defined(ARDUINO_ARCH_ESP32) && defined(CONFIG_ARDUHAL_ESP_LOG)
31-
#include "esp32-hal-log.h"
30+
31+
#if defined(ARDUINO_ARCH_ESP32)
3232
#include "esp32-hal-bt.h"
33+
#endif
34+
35+
#if defined(CONFIG_ARDUHAL_ESP_LOG)
36+
#include "esp32-hal-log.h"
3337
#define LOG_TAG ""
3438
#else
3539
#include "esp_log.h"

0 commit comments

Comments
 (0)