future proof return size

pull/9096/head
paul-szczepanek-arm 2019-01-02 15:42:14 +00:00
parent a66ffa34be
commit dd1d473375
4 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -97,7 +97,7 @@ public:
/** @copydoc Gap::getMaxActiveSetAdvertisingDataLength
*/
virtual uint8_t getMaxActiveSetAdvertisingDataLength();
virtual uint16_t getMaxActiveSetAdvertisingDataLength();
/** @copydoc Gap::createAdvertisingSet
*/

View File

@ -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;

View File

@ -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();