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.
Dependents: Peripheral_1_serial_copy Peripheral_1_serial 151006_1st_Scenario_normal
Fork of BLE_API by
Diff: public/BLE.h
- Revision:
- 556:34fa32a420f9
- Parent:
- 554:59e95a0efa37
- Child:
- 563:62cc3335df23
diff -r d31907908234 -r 34fa32a420f9 public/BLE.h --- a/public/BLE.h Fri Jun 19 15:52:10 2015 +0100 +++ b/public/BLE.h Fri Jun 19 15:52:10 2015 +0100 @@ -444,15 +444,6 @@ * ble.gap().startAdvertising(...). */ ble_error_t startAdvertising(void) { - /* HACK ALERT! the following bit with initializeGATTDatabase() is additional to - * gap().startAdvertising(). This was put in place to get some stacks to - * work--like CSR. We need to reach a point where this shouldn't be - * necessary. */ - ble_error_t rc; - if ((rc = transport->getGattServer().initializeGATTDatabase()) != BLE_ERROR_NONE) { - return rc; - } - return gap().startAdvertising(); }