Alignement and comment
This commit is contained in:
parent
0383194a59
commit
5908e3600d
1 changed files with 7 additions and 4 deletions
11
ble/Gap.h
11
ble/Gap.h
|
@ -959,11 +959,14 @@ public:
|
|||
*/
|
||||
void onRadioNotification(void (*callback)(bool param)) {
|
||||
radioNotificationCallback.attach(callback);
|
||||
// why does it start radio notification ? It is not even indicated in the
|
||||
// doc that it start the listening process
|
||||
initRadioNotification();
|
||||
}
|
||||
template <typename T>
|
||||
void onRadioNotification(T *tptr, void (T::*mptr)(bool)) {
|
||||
radioNotificationCallback.attach(tptr, mptr);
|
||||
// why does it start radio notification ?
|
||||
initRadioNotification();
|
||||
}
|
||||
|
||||
|
@ -1036,10 +1039,10 @@ protected:
|
|||
bool scanningActive;
|
||||
|
||||
protected:
|
||||
TimeoutEventCallbackChain_t timeoutCallbackChain;
|
||||
RadioNotificationEventCallback_t radioNotificationCallback;
|
||||
AdvertisementReportCallback_t onAdvertisementReport;
|
||||
ConnectionEventCallbackChain_t connectionCallChain;
|
||||
TimeoutEventCallbackChain_t timeoutCallbackChain;
|
||||
RadioNotificationEventCallback_t radioNotificationCallback;
|
||||
AdvertisementReportCallback_t onAdvertisementReport;
|
||||
ConnectionEventCallbackChain_t connectionCallChain;
|
||||
DisconnectionEventCallbackChain_t disconnectionCallChain;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue