High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
77:1436ecf09583
Parent:
75:d08bdef22500
Child:
104:6ef5abef5714
--- a/hw/Gap.h	Mon Jun 09 08:29:22 2014 +0100
+++ b/hw/Gap.h	Mon Jun 09 08:34:47 2014 +0100
@@ -68,24 +68,24 @@
 
     void handleEvent(GapEvents::gapEvent_e type) {
         switch (type) {
-        case GapEvents::GAP_EVENT_TIMEOUT:
-            state.advertising = 0;
-            if (onTimeout) {
-                onTimeout();
-            }
-            break;
-        case GapEvents::GAP_EVENT_CONNECTED:
-            state.connected = 1;
-            if (onConnection) {
-                onConnection();
-            }
-            break;
-        case GapEvents::GAP_EVENT_DISCONNECTED:
-            state.connected = 0;
-            if (onDisconnection) {
-                onDisconnection();
-            }
-            break;
+            case GapEvents::GAP_EVENT_TIMEOUT:
+                state.advertising = 0;
+                if (onTimeout) {
+                    onTimeout();
+                }
+                break;
+            case GapEvents::GAP_EVENT_CONNECTED:
+                state.connected = 1;
+                if (onConnection) {
+                    onConnection();
+                }
+                break;
+            case GapEvents::GAP_EVENT_DISCONNECTED:
+                state.connected = 0;
+                if (onDisconnection) {
+                    onDisconnection();
+                }
+                break;
         }
     }