BLE: Initialisation of legacy advertising set.

pull/8738/head
Vincent Coubard 2018-11-13 23:41:46 +00:00
parent 6fccb11006
commit 3e884a382e
1 changed files with 6 additions and 1 deletions

View File

@ -432,7 +432,12 @@ GenericGap::GenericGap(
_pal_gap.set_event_handler(this);
// FIXME: lazy initialization of the legacy advertising set
if (is_extended_advertising_available()) {
setExtendedAdvertisingParameters(
LEGACY_ADVERTISING_HANDLE,
GapAdvertisingParameters()
);
}
}
GenericGap::~GenericGap()