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
Revision 1182:b70129080ddf, committed 2016-04-06
- Comitter:
- vcoubard
- Date:
- Wed Apr 06 19:15:34 2016 +0100
- Parent:
- 1181:2361aa870ee5
- Child:
- 1183:1589830dbdb7
- Commit message:
- Synchronized with git rev 07ad5292
Author: Andres Amaya Garcia
Update Gap state in startAdvertising()
Changed in this revision
| ble/Gap.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ble/Gap.h Wed Apr 06 19:15:33 2016 +0100
+++ b/ble/Gap.h Wed Apr 06 19:15:34 2016 +0100
@@ -741,8 +741,12 @@
* Start advertising.
*/
ble_error_t startAdvertising(void) {
+ ble_error_t rc;
setAdvertisingData(); /* Update the underlying stack. */
- return startAdvertising(_advParams);
+ if ((rc = startAdvertising(_advParams)) == BLE_ERROR_NONE) {
+ state.advertising = 1;
+ }
+ return rc;
}
/**
