IGNORE_FLASH_CONFIGURATION

This commit is contained in:
rusefillc 2021-01-28 18:03:45 -05:00
parent d388afff34
commit 99dd0b9450
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
export PROJECT_BOARD=microrusefi
export PROJECT_CPU=ARCH_STM32F4
export EXTRA_PARAMS="-DSHORT_BOARD_NAME=mre_f4"
export EXTRA_PARAMS="-DSHORT_BOARD_NAME=mre_f4 -DIGNORE_FLASH_CONFIGURATION=TRUE"
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g3"

View File

@ -183,11 +183,15 @@ void runRusEfi(void) {
initPinRepository();
#if EFI_INTERNAL_FLASH
#if IGNORE_FLASH_CONFIGURATION
resetConfigurationExt(logger, DEFAULT_ENGINE_TYPE PASS_ENGINE_PARAMETER_SUFFIX);
#else
/**
* First thing is reading configuration from flash memory.
* In order to have complete flexibility configuration has to go before anything else.
*/
readConfiguration(&sharedLogger);
#endif // IGNORE_FLASH_CONFIGURATION
#endif /* EFI_INTERNAL_FLASH */
#if HW_CHECK_ALWAYS_STIMULATE