From b70f93d35163392b7984713ed7499e02d69f8903 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Thu, 18 Jun 2015 21:22:22 +0100 Subject: [PATCH] updates to support radioNotificationCallback --- nRF51Gap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nRF51Gap.h b/nRF51Gap.h index 4db8303..1e102d5 100644 --- a/nRF51Gap.h +++ b/nRF51Gap.h @@ -74,9 +74,9 @@ public: virtual ble_error_t setPreferredConnectionParams(const ConnectionParams_t *params); virtual ble_error_t updateConnectionParams(Handle_t handle, const ConnectionParams_t *params); - virtual void setOnRadioNotification(RadioNotificationEventCallback_t callback) { - Gap::setOnRadioNotification(callback); - ble_radio_notification_init(NRF_APP_PRIORITY_HIGH, NRF_RADIO_NOTIFICATION_DISTANCE_800US, onRadioNotification); + virtual void onRadioNotification(RadioNotificationEventCallback_t callback) { + Gap::onRadioNotification(callback); + ble_radio_notification_init(NRF_APP_PRIORITY_HIGH, NRF_RADIO_NOTIFICATION_DISTANCE_800US, radioNotificationCallback); } virtual ble_error_t startRadioScan(const GapScanningParams &scanningParams) {