make signature of BLE::onRadioNotification() more explicit.

void onRadioNotification(void (*callback)(bool))
This then is extended in Gap.h by:

    template <typename T>
    void onRadioNotification(T *tptr, void (T::*mptr)(bool));
This commit is contained in:
Rohit Grover 2015-07-21 09:34:08 +01:00
parent 26e9536a80
commit 5eda1ad9e7
1 changed files with 1 additions and 1 deletions

View File

@ -1126,7 +1126,7 @@ public:
* to ble.onRadioNotification(...) should be replaced with
* ble.gap().onRadioNotification(...).
*/
void onRadioNotification(Gap::RadioNotificationEventCallback_t callback) {
void onRadioNotification(void (*callback)(bool)) {
gap().onRadioNotification(callback);
}