Beacon demo for the BLE API using the nRF51822 native mode drivers

Dependencies:   BLE_API mbed nRF51822 X_NUCLEO_IDB0XA1

Fork of BLE_iBeacon by Bluetooth Low Energy

Revision:
6:26eab6ee6df4
Parent:
5:97ce285ff00a
Child:
7:e2bfd5db6713
--- a/main.cpp	Tue May 20 17:56:47 2014 +0100
+++ b/main.cpp	Tue May 20 18:03:51 2014 +0100
@@ -37,14 +37,14 @@
     *(uint32_t *)0x40006C18 = 0x00008000;
     
     /* Setup blinky: led1 is toggled in main, led2 is toggled via Ticker */
-    led1=1;
-    led2=1;
+    led1 = 1;
+    led2 = 1;
     flipper.attach(&tickerCallback, 1.0);
 
     /* Initialise the nRF51822 */
     pc.printf("Initialising the nRF51822\n\r");
     nrf.init();
-    
+
     GapAdvertisingParams advParams (
         GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED );
     GapAdvertisingData   advData;
@@ -73,8 +73,8 @@
 
     /* Do blinky on LED1 while we're waiting for BLE events */
     for (;; ) {
-      led1 = !led1;
-      wait(1);
+        led1 = !led1;
+        wait(1);
     }
 }