From 159d56cdb80abf57c0fb4820a55909ca1b396230 Mon Sep 17 00:00:00 2001 From: Tom Ball Date: Tue, 12 Mar 2024 13:37:42 -0700 Subject: [PATCH] redo --- libs/settings/settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/settings/settings.cpp b/libs/settings/settings.cpp index 4edbea7f1..45ba97457 100644 --- a/libs/settings/settings.cpp +++ b/libs/settings/settings.cpp @@ -10,7 +10,7 @@ namespace settings { #if defined(SAMD21) #define SETTINGS_SIZE (2 * 1024) -#elif MICROBIT_CODAL +#elif defined(MICROBIT_CODAL) && MICROBIT_CODAL #define SETTINGS_SIZE (8 * 1024) #else #define SETTINGS_SIZE (32 * 1024) @@ -30,7 +30,7 @@ class WStorage { fs(flash, 512 * 1024 - SETTINGS_SIZE, SETTINGS_SIZE), #elif defined(SAMD21) fs(flash, 256 * 1024 - SETTINGS_SIZE, SETTINGS_SIZE), -#elif MICROBIT_CODAL +#elif defined(MICROBIT_CODAL) && MICROBIT_CODAL // micro:bit V2 memory map // https://github.com/lancaster-university/codal-microbit-v2/blob/master/docs/MemoryMap.md // 73000 CODAL scratch page (is used as temporary scratch by MicroBitFlash, MicroBitFileSystem and MicroBitStorage)