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

@ -16,6 +16,10 @@
// Useful if you want to advertise some sort of message
// Button is attached between GPIO 0 and GND, and the device name changes each time the button is pressed
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
#endif
#include "SimpleBLE.h"
SimpleBLE ble;