From 42cba850c865dfb13b18966e0ed30bdba41f04c1 Mon Sep 17 00:00:00 2001 From: Sam Kent Date: Fri, 25 May 2018 11:58:28 +0100 Subject: [PATCH] Removed module.json edit. Delte KV Pairs. --- source/MicroBit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/MicroBit.cpp b/source/MicroBit.cpp index 39e8e32..0f564c7 100644 --- a/source/MicroBit.cpp +++ b/source/MicroBit.cpp @@ -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);