mirror of https://github.com/ARMmbed/mbed-os.git
BLE: TARGET_NRF5: use non deprecated version of Ticker::attach_us.
parent
1ecb1a6ca2
commit
cce4094f37
|
@ -220,7 +220,7 @@ private:
|
|||
*/
|
||||
void processRadioNotificationEvent(bool param) {
|
||||
radioNotificationCallbackParam = param;
|
||||
radioNotificationTimeout.attach_us(this, &nRF5xGap::postRadioNotificationCallback, 0);
|
||||
radioNotificationTimeout.attach_us(mbed::callback(this, &nRF5xGap::postRadioNotificationCallback), 0);
|
||||
}
|
||||
friend void radioNotificationStaticCallback(bool param); /* allow invocations of processRadioNotificationEvent() */
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ private:
|
|||
*/
|
||||
void processRadioNotificationEvent(bool param) {
|
||||
radioNotificationCallbackParam = param;
|
||||
radioNotificationTimeout.attach_us(this, &nRF5xGap::postRadioNotificationCallback, 0);
|
||||
radioNotificationTimeout.attach_us(mbed::callback(this, &nRF5xGap::postRadioNotificationCallback), 0);
|
||||
}
|
||||
friend void radioNotificationStaticCallback(bool param); /* allow invocations of processRadioNotificationEvent() */
|
||||
|
||||
|
|
Loading…
Reference in New Issue