From a17830030e4cc3a204fa8c94a6a2aef4724b2f7c Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Tue, 15 Sep 2015 17:03:36 +0100 Subject: [PATCH] microbit: HOTFIX: BLE Notification bug in MicroBitDFUService Hotfix of a minor bug in the MicroBitDFU Service that prevented BLE notifications from being sent on the FlashCode characterisitic. Needed as the Samsung companion app is dependent on this functionality to enable BLE programmming of the micro:bit. --- source/MicroBitDFUService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/MicroBitDFUService.cpp b/source/MicroBitDFUService.cpp index 729f671..702249f 100644 --- a/source/MicroBitDFUService.cpp +++ b/source/MicroBitDFUService.cpp @@ -234,7 +234,7 @@ void MicroBitDFUService::releaseFlashCode() { flashCode = NRF_FICR->DEVICEID[0]; - ble.updateCharacteristicValue(microBitDFUServiceFlashCodeCharacteristicHandle, (uint8_t *)&flashCode, sizeof(uint32_t)); + ble.gattServer().notify(microBitDFUServiceFlashCodeCharacteristicHandle,(uint8_t *)&flashCode, sizeof(uint32_t)); } /**