This commit is contained in:
Andrey G 2020-11-22 16:27:03 +03:00 committed by GitHub
parent 747b3d2fa8
commit b60ce1b9f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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();