From a97f1c42a427874d4f07c561eaa91979b3a6f68b Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 28 Jun 2023 18:51:49 -0400 Subject: [PATCH] only https://github.com/rusefi/rusefi-hardware/issues/212 maybe bugfix? --- misc/stm32f1_test_project/persistence.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/stm32f1_test_project/persistence.cpp b/misc/stm32f1_test_project/persistence.cpp index 9b688506db..6652b93471 100644 --- a/misc/stm32f1_test_project/persistence.cpp +++ b/misc/stm32f1_test_project/persistence.cpp @@ -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();