test
Fork of nRF51822 by
Diff: btle/btle.cpp
- Revision:
- 351:77f16b36012a
- Parent:
- 349:4a930be118d8
- Child:
- 356:55ede9fd5279
diff -r 09912ea7cedd -r 77f16b36012a btle/btle.cpp --- 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: