maybe bugfix?
This commit is contained in:
rusefillc 2023-06-28 18:51:49 -04:00
parent b11d32cb7b
commit a97f1c42a4
1 changed files with 2 additions and 2 deletions

View File

@ -56,9 +56,9 @@ int InitConfiguration() {
#define FLASH_SIZE_IN_K_ADDRESS 0x1FFFF7E0
int flashSize = (*(uint16_t*)FLASH_SIZE_IN_K_ADDRESS);
if (flashSize > 128) {
flashState = mfsStart(&mfs1, &mfscfg_1k);
} else {
flashState = mfsStart(&mfs1, &mfscfg_2k);
} else {
flashState = mfsStart(&mfs1, &mfscfg_1k);
}
size_t size = GetConfigurationSize();