Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
Diff: nRF51Gap.h
- Revision:
- 352:bae965fb00f1
- Parent:
- 348:922c8b211979
- Child:
- 356:55ede9fd5279
--- a/nRF51Gap.h Fri Jun 19 15:55:36 2015 +0100
+++ b/nRF51Gap.h Fri Jun 19 15:55:36 2015 +0100
@@ -74,9 +74,9 @@
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) {
