summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchegewara <imperiaonline4@gmail.com>2018-12-14 07:37:55 +0100
committerGitHub <noreply@github.com>2018-12-14 07:37:55 +0100
commitb232e7f5f0e87f36afbc2f4e03a2c49c48dd47bc (patch)
treebd55b92cd35b8598513617c15d8f81e3470a9772
parentUpdate minor version for platformIO (diff)
parentUpdate BLEDevice.cpp (diff)
downloadthermostat-b232e7f5f0e87f36afbc2f4e03a2c49c48dd47bc.tar.gz
thermostat-b232e7f5f0e87f36afbc2f4e03a2c49c48dd47bc.tar.bz2
thermostat-b232e7f5f0e87f36afbc2f4e03a2c49c48dd47bc.zip
Merge pull request #23 from tatsutaigu/master
Update 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"