summaryrefslogtreecommitdiff
path: root/supervisor/shared/external_flash/external_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'supervisor/shared/external_flash/external_flash.c')
-rw-r--r--supervisor/shared/external_flash/external_flash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/supervisor/shared/external_flash/external_flash.c b/supervisor/shared/external_flash/external_flash.c
index e2d767235..23727e7e7 100644
--- a/supervisor/shared/external_flash/external_flash.c
+++ b/supervisor/shared/external_flash/external_flash.c
@@ -45,7 +45,8 @@
// The currently cached sector in the cache, ram or flash based.
static uint32_t current_sector;
-const external_flash_device possible_devices[EXTERNAL_FLASH_DEVICE_COUNT] = {EXTERNAL_FLASH_DEVICES};
+STATIC const external_flash_device possible_devices[] = {EXTERNAL_FLASH_DEVICES};
+#define EXTERNAL_FLASH_DEVICE_COUNT MP_ARRAY_SIZE(possible_devices)
static const external_flash_device* flash_device = NULL;