diff --git a/source/drivers/MicroBitFlash.cpp b/source/drivers/MicroBitFlash.cpp index 6b289d2..a7541d0 100644 --- a/source/drivers/MicroBitFlash.cpp +++ b/source/drivers/MicroBitFlash.cpp @@ -200,9 +200,7 @@ int MicroBitFlash::flash_write(void* address, void* from_buffer, { // If no scratch_addr has been supplied use the default if(scratch_addr == NULL) - { scratch_addr = (uint32_t *)DEFAULT_SCRATCH_PAGE; - } // Ensure that scratch_addr is aligned on a page boundary.