accumulateAdvertisingPayload(flags) should allow for combinations of flags

master
Rohit Grover 2014-07-04 11:27:20 +01:00
parent 33da94e934
commit 1d1a471636
1 changed files with 4 additions and 3 deletions

View File

@ -133,9 +133,10 @@ public:
* small.
*
* @param flags
* The flag to be added.
* The flags to be added. Multiple flags may be specified in
* combination.
*/
ble_error_t accumulateAdvertisingPayload(GapAdvertisingData::Flags flags);
ble_error_t accumulateAdvertisingPayload(uint8_t flags);
/**
* Accumulate an AD structure in the advertising payload. Please note that
@ -338,7 +339,7 @@ BLEDevice::clearAdvertisingPayload(void)
}
inline ble_error_t
BLEDevice::accumulateAdvertisingPayload(GapAdvertisingData::Flags flags)
BLEDevice::accumulateAdvertisingPayload(uint8_t flags)
{
needToSetAdvPayload = true;
return advPayload.addFlags(flags);