Bike service
Fork of BLE_API by
Diff: ble/Gap.h
- Revision:
- 1183:b70129080ddf
- Parent:
- 1181:e11b058d005e
- Child:
- 1184:1589830dbdb7
diff -r 2361aa870ee5 -r b70129080ddf ble/Gap.h --- 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; } /**