From f320bce48060b9fc5e04c16d40dd2522cbe508b4 Mon Sep 17 00:00:00 2001 From: Andy Horner Date: Sun, 9 Dec 2018 09:53:59 -0700 Subject: [PATCH] Fix a compilation error if Bluetooth not enabled --- cores/esp32/esp32-hal-misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/esp32/esp32-hal-misc.c b/cores/esp32/esp32-hal-misc.c index 5e6ea13df9e..704a273276f 100644 --- a/cores/esp32/esp32-hal-misc.c +++ b/cores/esp32/esp32-hal-misc.c @@ -21,7 +21,9 @@ #include "esp_partition.h" #include "esp_log.h" #include "esp_timer.h" +#ifdef CONFIG_BT_ENABLED #include "esp_bt.h" +#endif //CONFIG_BT_ENABLED #include #include "esp32-hal.h"