smarter MIN_FLASH_SIZE

This commit is contained in:
rusefillc 2022-12-16 18:24:39 -05:00
parent ef24fadfa0
commit d454763d29
1 changed files with 2 additions and 0 deletions

View File

@ -71,7 +71,9 @@ static void sayHello() {
int mcuRevision = DBGMCU->IDCODE & MCU_REVISION_MASK;
#ifndef MIN_FLASH_SIZE
#define MIN_FLASH_SIZE 1024
#endif // MIN_FLASH_SIZE
int flashSize = TM_ID_GetFlashSize();
if (flashSize < MIN_FLASH_SIZE) {