Skip to content

Commit

Permalink
redo
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Mar 12, 2024
1 parent a82aa7d commit 159d56c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/settings/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 159d56c

Please sign in to comment.