Removed module.json edit. Delte KV Pairs.

This commit is contained in:
Sam Kent 2018-05-25 11:58:28 +01:00
parent a6ab0e6c1b
commit 42cba850c8

View file

@ -154,8 +154,9 @@ void MicroBit::init()
// Remove KV if it exists
if(BLEMode != NULL){
storage.remove("BLEMode");
delete BLEMode;
}
delete BLEMode;
delete flashIncomplete;
#if CONFIG_ENABLED(MICROBIT_HEAP_ALLOCATOR) && CONFIG_ENABLED(MICROBIT_HEAP_REUSE_SD)
microbit_create_heap(MICROBIT_SD_GATT_TABLE_START + MICROBIT_SD_GATT_TABLE_SIZE, MICROBIT_SD_LIMIT);