From b60ce1b9f8198b52a48eaf35428cd9f1e8c318e6 Mon Sep 17 00:00:00 2001 From: Andrey G Date: Sun, 22 Nov 2020 16:27:03 +0300 Subject: [PATCH] Typo fix (#1978) --- firmware/hw_layer/hardware.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/hw_layer/hardware.cpp b/firmware/hw_layer/hardware.cpp index 8f58d96df5..a10e39958d 100644 --- a/firmware/hw_layer/hardware.cpp +++ b/firmware/hw_layer/hardware.cpp @@ -466,9 +466,9 @@ void initHardware(Logging *l) { #ifdef CONFIG_RESET_SWITCH_PORT // this pin is not configurable at runtime so that we have a reliable way to reset configuration -#define SHOULD_INGORE_FLASH() (palReadPad(CONFIG_RESET_SWITCH_PORT, CONFIG_RESET_SWITCH_PIN) == 0) +#define SHOULD_IGNORE_FLASH() (palReadPad(CONFIG_RESET_SWITCH_PORT, CONFIG_RESET_SWITCH_PIN) == 0) #else -#define SHOULD_INGORE_FLASH() (false) +#define SHOULD_IGNORE_FLASH() (false) #endif // CONFIG_RESET_SWITCH_PORT #ifdef CONFIG_RESET_SWITCH_PORT @@ -482,7 +482,7 @@ void initHardware(Logging *l) { * * interesting fact that we have another read from flash before we get here */ - if (SHOULD_INGORE_FLASH()) { + if (SHOULD_IGNORE_FLASH()) { engineConfiguration->engineType = DEFAULT_ENGINE_TYPE; resetConfigurationExt(sharedLogger, engineConfiguration->engineType PASS_ENGINE_PARAMETER_SUFFIX); writeToFlashNow();