Skip to content

Commit 3ddcdf2

Browse files
committed
BLE: Fix ble::Gap::getMaxAdvertisingDataLength return type.
1 parent 402a447 commit 3ddcdf2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

features/FEATURE_BLE/ble/gap/Gap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ class Gap {
536536
*
537537
* @return Maximum advertising data length supported.
538538
*/
539-
virtual uint8_t getMaxAdvertisingDataLength();
539+
virtual uint16_t getMaxAdvertisingDataLength();
540540

541541
/** Create an advertising set and apply the passed in parameters. The handle returned
542542
* by this function must be used for all other calls that accept an advertising handle.

features/FEATURE_BLE/ble/generic/GenericGap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class GenericGap :
9090

9191
/** @copydoc Gap::getMaxAdvertisingDataLength
9292
*/
93-
virtual uint8_t getMaxAdvertisingDataLength();
93+
virtual uint16_t getMaxAdvertisingDataLength();
9494

9595
/** @copydoc Gap::createAdvertisingSet
9696
*/

features/FEATURE_BLE/source/gap/Gap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ uint8_t Gap::getMaxAdvertisingSetNumber()
3030
return 1;
3131
}
3232

33-
uint8_t Gap::getMaxAdvertisingDataLength()
33+
uint16_t Gap::getMaxAdvertisingDataLength()
3434
{
3535
/* Requesting action from porter(s): override this API if this capability is supported. */
3636
return LEGACY_ADVERTISING_MAX_SIZE;

features/FEATURE_BLE/source/generic/GenericGap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ ble_error_t GenericGap::connect(
696696

697697
// ensure scan is stopped.
698698
_pal_gap.extended_scan_enable(false, pal::duplicates_filter_t::DISABLE, 0, 0);
699-
699+
700700
// reduce the address type to public or random
701701
peer_address_type_t adjusted_address_type(peer_address_type_t::PUBLIC);
702702

@@ -2003,7 +2003,7 @@ uint8_t GenericGap::getMaxAdvertisingSetNumber()
20032003
}
20042004
}
20052005

2006-
uint8_t GenericGap::getMaxAdvertisingDataLength()
2006+
uint16_t GenericGap::getMaxAdvertisingDataLength()
20072007
{
20082008
useVersionTwoAPI();
20092009
return _pal_gap.get_maximum_advertising_data_length();

0 commit comments

Comments
 (0)