I don't know why this is happening.

Fork of BLE_API by Bluetooth Low Energy

Revision:
993:cac5254ec304
Parent:
242:0e9201b67e2f
--- a/services/DFUService.h	Mon Nov 30 16:42:22 2015 +0000
+++ b/services/DFUService.h	Wed Feb 03 18:21:52 2016 +0000
@@ -16,7 +16,7 @@
 
 #ifndef __BLE_DFU_SERVICE_H__
 #define __BLE_DFU_SERVICE_H__
-
+#include "mbed.h"
 #include "BLEDevice.h"
 #include "UUID.h"
 
@@ -102,7 +102,7 @@
             if (handoverCallback) {
                 handoverCallback();
             }
-
+            NRF_WDT->RR[0] = WDT_RR_RR_Reload; // Reload watchdog timer right before we enter DFU
             bootloader_start();
         }
     }