Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: GapAdvertisingData.cpp
- Revision:
- 96:6f4c8e545d38
- Parent:
- 76:103fac6e36d1
diff -r 5d2102351bf4 -r 6f4c8e545d38 GapAdvertisingData.cpp
--- a/GapAdvertisingData.cpp Fri Jun 13 13:07:46 2014 +0100
+++ b/GapAdvertisingData.cpp Thu Jun 19 14:09:37 2014 +0100
@@ -156,9 +156,9 @@
\endcode
*/
/**************************************************************************/
-ble_error_t GapAdvertisingData::addFlags(Flags flag)
+ble_error_t GapAdvertisingData::addFlags(uint8_t flags)
{
- return addData(GapAdvertisingData::FLAGS, (uint8_t *)&flag, 1);
+ return addData(GapAdvertisingData::FLAGS, &flags, 1);
}
/**************************************************************************/
