Give better feedback to user about disbaling BLE

This little chunk of pre-processor logic could/should migrate into
microbit-dal in the long run.
This commit is contained in:
Jonathan Austin 2016-07-13 10:34:51 +01:00
parent 274da8ba5a
commit 9bb313f8e4
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@ DEALINGS IN THE SOFTWARE.
#include "MicroBit.h"
#if MICROBIT_BLE_ENABLED
#error "This example needs BLE to be disabled in the microbit config MicroBitConfig.h"
#ifdef YOTTA_CFG
#error "This example needs BLE to be disabled. Use the yotta config.json in the proximit-heart directory to do this"
#else
#error "This example needs BLE to be disabled in the microbit config file in the microbit-dal: MicroBitConfig.h"
#endif
#endif
MicroBit uBit;