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 122:4b68a819ab4f, committed 2014-09-30
- Comitter:
- Rohit Grover
- Date:
- Tue Sep 30 01:03:56 2014 +0100
- Parent:
- 121:035516234a33
- Child:
- 123:fede41ce9407
- Commit message:
- DFUService object needs to remain alive after ble.init(); declaring as static.
Changed in this revision
| common/BLEDevice.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/common/BLEDevice.cpp Tue Sep 30 00:47:01 2014 +0100
+++ b/common/BLEDevice.cpp Tue Sep 30 01:03:56 2014 +0100
@@ -31,7 +31,7 @@
/* Platforms enabled for DFU should introduce the DFU Service into
* applications automatically. */
#if defined(TARGET_OTA_ENABLED)
- DFUService dfu(*this);
+ static DFUService dfu(*this); // defined static so that the object remains alive
#endif // TARGET_OTA_ENABLED
return BLE_ERROR_NONE;
