diff options
| author | Dan Halbert <halbert@halwitz.org> | 2021-03-11 12:27:29 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2021-03-11 12:27:29 -0500 |
| commit | de88fa37fb16c49eef2146b43322d2937eaaf290 (patch) | |
| tree | 3aff5e6887b384d7b4ccf4343f6ca3c7ebd86f2a /supervisor/shared/external_flash | |
| parent | 061d5910cb6e6eecda70a7a7a5320a414e8b3b9e (diff) | |
| parent | 15e97f12a1be8b2aa625b59d127b6d1db530a18b (diff) | |
Merge remote-tracking branch 'adafruit/main' into esp32s2-i2c-bug
Diffstat (limited to 'supervisor/shared/external_flash')
| -rw-r--r-- | supervisor/shared/external_flash/external_flash.c | 3 |
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; |
