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 1018:8a29b01b47db, committed 2015-12-10
- Comitter:
- rgrover1
- Date:
- Thu Dec 10 09:15:01 2015 +0000
- Parent:
- 1017:ccb8c0646e55
- Child:
- 1019:575852ad31a2
- Commit message:
- Synchronized with git rev 3d9913ce
Author: Rohit Grover
Release 2.1.4
=============
Minor change to fix a build issue:
Disable DFUService except for nRF51 targets.
Changed in this revision
--- a/ble/services/DFUService.h Thu Dec 10 09:15:01 2015 +0000
+++ b/ble/services/DFUService.h Thu Dec 10 09:15:01 2015 +0000
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+#ifdef TARGET_NRF51822 /* DFU only supported on nrf51 platforms */
+
#ifndef __BLE_DFU_SERVICE_H__
#define __BLE_DFU_SERVICE_H__
@@ -140,4 +142,5 @@
static ResetPrepare_t handoverCallback; /**< Application-specific handover callback. */
};
-#endif /* #ifndef __BLE_DFU_SERVICE_H__*/
\ No newline at end of file
+#endif /* #ifndef __BLE_DFU_SERVICE_H__*/
+#endif /* #ifdef TARGET_NRF51822 */
\ No newline at end of file
--- a/module.json Thu Dec 10 09:15:01 2015 +0000
+++ b/module.json Thu Dec 10 09:15:01 2015 +0000
@@ -1,6 +1,6 @@
{
"name": "ble",
- "version": "2.1.3",
+ "version": "2.1.4",
"description": "The BLE module offers a high level abstraction for using Bluetooth Low Energy on multiple platforms.",
"keywords": [
"Bluetooth",
--- a/source/services/DFUService.cpp Thu Dec 10 09:15:01 2015 +0000
+++ b/source/services/DFUService.cpp Thu Dec 10 09:15:01 2015 +0000
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+#ifdef TARGET_NRF51822 /* DFU only supported on nrf51 platforms */
+
#include "ble/services/DFUService.h"
const uint8_t DFUServiceBaseUUID[] = {
@@ -37,4 +39,6 @@
0x15, 0x23, 0x78, 0x5F, 0xEA, 0xBC, 0xD1, 0x23,
};
-DFUService::ResetPrepare_t DFUService::handoverCallback = NULL;
\ No newline at end of file
+DFUService::ResetPrepare_t DFUService::handoverCallback = NULL;
+
+#endif /* #ifdef TARGET_NRF51822 */
\ No newline at end of file
