From 673f453da02fa8fc5b07c3e85b133233d7334c99 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Sat, 6 May 2017 18:50:20 +0300 Subject: [PATCH] BT define the hal methods even if BT is disabled (but return false) --- cores/esp32/esp32-hal-bt.c | 15 +++++++++++++++ cores/esp32/esp32-hal-bt.h | 4 ---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/cores/esp32/esp32-hal-bt.c b/cores/esp32/esp32-hal-bt.c index 0455a171..0d19e5d5 100644 --- a/cores/esp32/esp32-hal-bt.c +++ b/cores/esp32/esp32-hal-bt.c @@ -64,5 +64,20 @@ bool btStop(){ return false; } +#else +bool btStarted() +{ + return false; +} + +bool btStart() +{ + return false; +} + +bool btStop() +{ + return false; +} #endif diff --git a/cores/esp32/esp32-hal-bt.h b/cores/esp32/esp32-hal-bt.h index 23bd9728..56222da3 100644 --- a/cores/esp32/esp32-hal-bt.h +++ b/cores/esp32/esp32-hal-bt.h @@ -17,8 +17,6 @@ #include "esp32-hal.h" -#if CONFIG_BT_ENABLED - #ifdef __cplusplus extern "C" { #endif @@ -31,6 +29,4 @@ bool btStop(); } #endif -#endif - #endif /* _ESP32_ESP32_HAL_BT_H_ */