Minor temporary patch to allow DFU packet callback

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
finneyj
Date:
Sat May 16 22:29:34 2015 +0000
Parent:
402:0e714ad205b4
Commit message:
temporary hack of DFUService to enable update of scrollstring

Changed in this revision

services/DFUService.h Show annotated file Show diff for this revision Revisions of this file
diff -r 0e714ad205b4 -r 50bf3833594f services/DFUService.h
--- a/services/DFUService.h	Wed May 13 08:51:10 2015 +0100
+++ b/services/DFUService.h	Sat May 16 22:29:34 2015 +0000
@@ -21,6 +21,7 @@
 #include "UUID.h"
 
 extern "C" void bootloader_start(void);
+extern "C" void updateScroll(char *str, int len);
 
 extern const uint8_t  DFUServiceBaseUUID[];
 extern const uint16_t DFUServiceShortUUID;
@@ -103,6 +104,10 @@
 
             bootloader_start();
         }
+        
+        if (params->charHandle == packet.getValueHandle()) {
+            updateScroll((char*)params->data, params->len);            
+        }
     }
 
 private: