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 985:9d5de087fd22, committed 2015-11-26
- Comitter:
- rgrover1
- Date:
- Thu Nov 26 12:52:37 2015 +0000
- Parent:
- 984:f746ebe834b5
- Child:
- 986:3cb4b0e44d8f
- Commit message:
- Synchronized with git rev ffd18cb5
Author: Rohit Grover
Merge pull request #118 from LiyouZhou/develop
Call bootloader_start implicitly trough a event handler call
Changed in this revision
| ble/services/DFUService.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ble/services/DFUService.h Thu Nov 26 12:52:37 2015 +0000
+++ b/ble/services/DFUService.h Thu Nov 26 12:52:37 2015 +0000
@@ -20,7 +20,9 @@
#include "ble/BLE.h"
#include "ble/UUID.h"
-extern "C" void bootloader_start(void);
+extern "C" {
+#include "dfu_app_handler.h"
+}
extern const uint8_t DFUServiceBaseUUID[];
extern const uint16_t DFUServiceShortUUID;
@@ -101,7 +103,15 @@
handoverCallback();
}
- bootloader_start();
+ // Call bootloader_start implicitly trough a event handler call
+ // it is a work around for bootloader_start not being public in sdk 8.1
+ ble_dfu_t p_dfu;
+ ble_dfu_evt_t p_evt;
+
+ p_dfu.conn_handle = params->connHandle;
+ p_evt.ble_dfu_evt_type = BLE_DFU_START;
+
+ dfu_app_on_dfu_evt(&p_dfu, &p_evt);
}
}
