From 19a51d0f2148114a1d15cefdd62fe296d329c58e Mon Sep 17 00:00:00 2001 From: Sam Kent Date: Wed, 15 Nov 2017 16:55:48 +0000 Subject: [PATCH] Neater if statement --- source/drivers/MicroBitFlash.cpp | 2 -- 1 file changed, 2 deletions(-) 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.