Shuta Nakamae / nRF51822

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Jun 19 15:55:36 2015 +0100
Parent:
350:09912ea7cedd
Child:
352:bae965fb00f1
Commit message:
Synchronized with git rev 2f4e06b2
Author: Rohit Grover
handle processTimeoutEvent() passing in TimeoutSource_t

Changed in this revision

btle/btle.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/btle/btle.cpp	Fri Jun 19 15:55:36 2015 +0100
+++ b/btle/btle.cpp	Fri Jun 19 15:55:36 2015 +0100
@@ -155,9 +155,7 @@
             break;
 
         case BLE_GAP_EVT_TIMEOUT:
-            if (p_ble_evt->evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_ADVERTISING) {
-                nRF51Gap::getInstance().processEvent(GapEvents::GAP_EVENT_TIMEOUT);
-            }
+            nRF51Gap::getInstance().processTimeoutEvent(static_cast<Gap::TimeoutSource_t>(p_ble_evt->evt.gap_evt.params.timeout.src));
             break;
 
         case BLE_GATTC_EVT_TIMEOUT: