security manager conflict commented
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Revision 74:d5267e1fd5f9, committed 2018-01-26
- Comitter:
- cristianobarbosa
- Date:
- Fri Jan 26 14:13:26 2018 +0000
- Parent:
- 73:eb91bba49623
- Commit message:
- receiver bib
Changed in this revision
source/bluetooth/MicroBitDFUService.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/source/bluetooth/MicroBitDFUService.cpp Wed Jul 13 14:32:54 2016 +0000 +++ b/source/bluetooth/MicroBitDFUService.cpp Fri Jan 26 14:13:26 2018 +0000 @@ -76,7 +76,7 @@ controlByte = 0x00; // Set default security requirements - microBitDFUServiceControlCharacteristic.requireSecurity(SecurityManager::MICROBIT_BLE_SECURITY_LEVEL); + //microBitDFUServiceControlCharacteristic.requireSecurity(SecurityManager::MICROBIT_BLE_SECURITY_LEVEL); GattCharacteristic *characteristics[] = {µBitDFUServiceControlCharacteristic}; GattService service(MicroBitDFUServiceUUID, characteristics, sizeof(characteristics) / sizeof(GattCharacteristic *)); @@ -102,9 +102,9 @@ //uBit.display.stopAnimation(); //uBit.display.clear(); -#if CONFIG_ENABLED(MICROBIT_DBG) - printf(" ACTIVATING BOOTLOADER.\n"); -#endif +//#if CONFIG_ENABLED(MICROBIT_DBG) + // printf(" ACTIVATING BOOTLOADER.\n"); +//#endif // Perform an explicit disconnection to assist our peer to reconnect to the DFU service ble.disconnect(Gap::REMOTE_DEV_TERMINATION_DUE_TO_POWER_OFF);