From b1298262e1be09dc8b945b4340b02a39bc5b07bb Mon Sep 17 00:00:00 2001 From: Jay Blackman Date: Tue, 7 Jan 2025 11:27:38 +1100 Subject: [PATCH] FIX: Flash page size check is STM (or clone) specific (#14130) --- src/main/config/config_streamer.c | 4 ---- src/platform/common/stm32/config_flash.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/config/config_streamer.c b/src/main/config/config_streamer.c index d519d61b4..74961fb3c 100644 --- a/src/main/config/config_streamer.c +++ b/src/main/config/config_streamer.c @@ -37,10 +37,6 @@ uint8_t eepromData[EEPROM_SIZE]; #endif #endif -#if !defined(FLASH_PAGE_SIZE) -#error "Flash page size not defined for target." -#endif - void config_streamer_init(config_streamer_t *c) { memset(c, 0, sizeof(*c)); diff --git a/src/platform/common/stm32/config_flash.c b/src/platform/common/stm32/config_flash.c index e1f6b484e..c94fb082b 100644 --- a/src/platform/common/stm32/config_flash.c +++ b/src/platform/common/stm32/config_flash.c @@ -27,6 +27,10 @@ #if defined(CONFIG_IN_FLASH) +#if !defined(FLASH_PAGE_SIZE) +#error "Flash page size not defined for STM (or clone) target." +#endif + #if defined(STM32F745xx) || defined(STM32F746xx) || defined(STM32F765xx) /* Sector 0 0x08000000 - 0x08007FFF 32 Kbytes -- 2.11.4.GIT