We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 744ef59 commit 71ed27eCopy full SHA for 71ed27e
features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.cpp
@@ -923,7 +923,7 @@ uint16_t Gap::get_maximum_advertising_data_length()
923
924
uint8_t Gap::get_max_number_of_advertising_sets()
925
{
926
- return HciGetNumSupAdvSets();
+ return std::min(HciGetNumSupAdvSets(), (uint8_t) DM_NUM_ADV_SETS);
927
}
928
929
ble_error_t Gap::remove_advertising_set(advertising_handle_t advertising_handle)
0 commit comments