Beacon demo for the BLE API using the nRF51822 native mode drivers
Dependencies: BLE_API mbed nRF51822
Fork of BLE_iBeacon by
Revision 77:7674b63f8aea, committed 2015-12-03
- Comitter:
- rgrover1
- Date:
- Thu Dec 03 09:26:30 2015 +0000
- Parent:
- 76:776e4ef44177
- Commit message:
- fixed a typo in main(). We would previously be spinning on initialization and never enter low-power mode.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 776e4ef44177 -r 7674b63f8aea main.cpp --- a/main.cpp Thu Nov 26 14:38:09 2015 +0000 +++ b/main.cpp Thu Dec 03 09:26:30 2015 +0000 @@ -53,7 +53,7 @@ /* SpinWait for initialization to complete. This is necessary because the * BLE object is used in the main loop below. */ - while (ble.hasInitialized()) { /* spin loop */ } + while (!ble.hasInitialized()) { /* spin loop */ } while (true) { ble.waitForEvent(); // allows or low power operation