BLE: use helper function where appropriate.

pull/8738/head
Vincent Coubard 2018-11-10 13:43:45 +00:00
parent d63c7bc948
commit f6ceafa3e9
1 changed files with 1 additions and 1 deletions

View File

@ -1587,9 +1587,9 @@ uint8_t GenericGap::getMaxAdvertisingDataLength()
return _pal_gap.get_maximum_advertising_data_length();
}
if (_pal_gap.is_feature_supported(pal::Gap::ControllerSupportedFeatures_t::LE_EXTENDED_ADVERTISING)) {
ble_error_t GenericGap::createAdvertisingSet(AdvHandle_t* handle)
{
if (is_extended_advertising_enabled()) {
return BLE_ERROR_OPERATION_NOT_PERMITTED;
}