Minor temporary patch to allow DFU packet callback

Fork of BLE_API by Bluetooth Low Energy

Revision:
122:4b68a819ab4f
Parent:
121:035516234a33
Child:
260:ea7f9f14cc15
--- 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;