mirror of https://github.com/ARMmbed/mbed-os.git
future proof return size
parent
a66ffa34be
commit
dd1d473375
|
|
@ -548,7 +548,7 @@ public:
|
|||
*
|
||||
* @return Maximum advertising data length you may set if advertising set is active.
|
||||
*/
|
||||
virtual uint8_t getMaxActiveSetAdvertisingDataLength();
|
||||
virtual uint16_t getMaxActiveSetAdvertisingDataLength();
|
||||
|
||||
/** Create an advertising set and apply the passed in parameters. The handle returned
|
||||
* by this function must be used for all other calls that accept an advertising handle.
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ public:
|
|||
|
||||
/** @copydoc Gap::getMaxActiveSetAdvertisingDataLength
|
||||
*/
|
||||
virtual uint8_t getMaxActiveSetAdvertisingDataLength();
|
||||
virtual uint16_t getMaxActiveSetAdvertisingDataLength();
|
||||
|
||||
/** @copydoc Gap::createAdvertisingSet
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ uint16_t Gap::getMaxConnectableAdvertisingDataLength()
|
|||
return LEGACY_ADVERTISING_MAX_SIZE;
|
||||
}
|
||||
|
||||
uint8_t Gap::getMaxActiveSetAdvertisingDataLength()
|
||||
uint16_t Gap::getMaxActiveSetAdvertisingDataLength()
|
||||
{
|
||||
/* Requesting action from porter(s): override this API if this capability is supported. */
|
||||
return LEGACY_ADVERTISING_MAX_SIZE;
|
||||
|
|
|
|||
|
|
@ -2015,7 +2015,7 @@ uint16_t GenericGap::getMaxConnectableAdvertisingDataLength()
|
|||
return _pal_gap.get_maximum_connectable_advertising_data_length();
|
||||
}
|
||||
|
||||
uint8_t GenericGap::getMaxActiveSetAdvertisingDataLength()
|
||||
uint16_t GenericGap::getMaxActiveSetAdvertisingDataLength()
|
||||
{
|
||||
useVersionTwoAPI();
|
||||
return _pal_gap.get_maximum_hci_advertising_data_length();
|
||||
|
|
|
|||
Loading…
Reference in New Issue