Skip to content

Commit cce4094

Browse files
committed
BLE: TARGET_NRF5: use non deprecated version of Ticker::attach_us.
1 parent 1ecb1a6 commit cce4094

File tree

2 files changed

+2
-2
lines changed
  • features/FEATURE_BLE/targets/TARGET_NORDIC

2 files changed

+2
-2
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/source/nRF5xGap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class nRF5xGap : public Gap
220220
*/
221221
void processRadioNotificationEvent(bool param) {
222222
radioNotificationCallbackParam = param;
223-
radioNotificationTimeout.attach_us(this, &nRF5xGap::postRadioNotificationCallback, 0);
223+
radioNotificationTimeout.attach_us(mbed::callback(this, &nRF5xGap::postRadioNotificationCallback), 0);
224224
}
225225
friend void radioNotificationStaticCallback(bool param); /* allow invocations of processRadioNotificationEvent() */
226226

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xGap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class nRF5xGap : public Gap
221221
*/
222222
void processRadioNotificationEvent(bool param) {
223223
radioNotificationCallbackParam = param;
224-
radioNotificationTimeout.attach_us(this, &nRF5xGap::postRadioNotificationCallback, 0);
224+
radioNotificationTimeout.attach_us(mbed::callback(this, &nRF5xGap::postRadioNotificationCallback), 0);
225225
}
226226
friend void radioNotificationStaticCallback(bool param); /* allow invocations of processRadioNotificationEvent() */
227227

0 commit comments

Comments
 (0)