Add guards to not compile BT code if not enabled

This commit is contained in:
me-no-dev
2017-09-21 19:08:18 +08:00
parent 4092fc409e
commit c66a020e80
4 changed files with 13 additions and 1 deletions

View File

@ -14,7 +14,8 @@
#include "esp32-hal-bt.h"
#if CONFIG_BT_ENABLED
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
#include "bt.h"
#include "esp_bt_defs.h"