Lancaster University's fork of the mbed BLE API. Lives on github, https://github.com/lancaster-university/BLE_API

Dependents:   microbit-dal microbit-dal microbit-ble-open microbit-dal ... more

Fork of BLE_API by Bluetooth Low Energy

Revision:
948:1bb402105289
Parent:
947:f3fcaea7d005
Child:
949:1902cbd0dd83
--- a/ble/services/DFUService.h	Thu Nov 26 12:52:08 2015 +0000
+++ b/ble/services/DFUService.h	Thu Nov 26 12:52:08 2015 +0000
@@ -20,9 +20,7 @@
 #include "ble/BLE.h"
 #include "ble/UUID.h"
 
-extern "C" {
-#include "dfu_app_handler.h"
-}
+extern "C" void bootloader_start(void);
 
 extern const uint8_t  DFUServiceBaseUUID[];
 extern const uint16_t DFUServiceShortUUID;
@@ -103,13 +101,7 @@
                 handoverCallback();
             }
 
-            // 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;
-            p_dfu->conn_handle = params->connHandle;
-            ble_dfu_evt_t *p_evt;
-            p_evt->ble_dfu_evt_type = BLE_DFU_START;
-            dfu_app_on_dfu_evt(p_dfu, p_evt);
+            bootloader_start();
         }
     }