mediCAL's first BLE project

Dependents:   BLE_mediCAL

Fork of nRF51822 by Nordic Semiconductor

Revision:
40:1cb3707fa798
Parent:
37:c29c330d942c
Child:
41:6e66cd970659
--- a/btle/btle.cpp	Tue Jul 08 11:15:50 2014 +0100
+++ b/btle/btle.cpp	Thu Jul 10 11:29:44 2014 +0100
@@ -86,8 +86,7 @@
     /* Custom event handler */
     switch (p_ble_evt->header.evt_id) {
         case BLE_GAP_EVT_CONNECTED:
-            nRF51Gap::getInstance().setConnectionHandle(
-                p_ble_evt->evt.gap_evt.conn_handle );
+            nRF51Gap::getInstance().setConnectionHandle(p_ble_evt->evt.gap_evt.conn_handle);
             nRF51Gap::getInstance().handleEvent(GapEvents::GAP_EVENT_CONNECTED);
             break;
 
@@ -122,8 +121,7 @@
         break;
 
         case BLE_GAP_EVT_TIMEOUT:
-            if (p_ble_evt->evt.gap_evt.params.timeout.src ==
-                    BLE_GAP_TIMEOUT_SRC_ADVERTISEMENT) {
+            if (p_ble_evt->evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_ADVERTISEMENT) {
                 nRF51Gap::getInstance().handleEvent(GapEvents::GAP_EVENT_TIMEOUT);
             }
             break;