BLE: TARGET_NRF5: use non deprecated version of Ticker::attach_us.

pull/2785/head
Vincent Coubard 2016-09-22 16:17:10 +01:00
parent 1ecb1a6ca2
commit cce4094f37
2 changed files with 2 additions and 2 deletions

View File

@ -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() */

View File

@ -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() */