From 70f000da7114f4e38853f2568ad8cb2929134d32 Mon Sep 17 00:00:00 2001 From: Andy Horner Date: Mon, 10 Dec 2018 02:11:37 -0700 Subject: [PATCH] Fix a compilation error if Bluetooth not enabled (#2172) --- 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 5e6ea13d..704a2732 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"