Minor temporary patch to allow DFU packet callback
Fork of BLE_API by
Diff: services/DFUService.h
- Revision:
- 403:50bf3833594f
- Parent:
- 277:1407d2f1ce3c
--- 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: