fix: Internal module setting and applying post load fixes on radio settings (#1787)

This commit is contained in:
Raphael Coeffic
2022-04-02 21:28:04 +10:00
committed by GitHub
parent 8b515ed998
commit d8075cbabb
2 changed files with 7 additions and 5 deletions
+2 -5
View File
@@ -129,15 +129,12 @@ const char * loadRadioSettings()
#endif #endif
} }
#if defined(DEFAULT_INTERNAL_MODULE)
g_eeGeneral.internalModule = DEFAULT_INTERNAL_MODULE;
#endif
const char* error = loadRadioSettingsYaml(); const char* error = loadRadioSettingsYaml();
if (!error) { if (!error) {
g_eeGeneral.chkSum = evalChkSum(); g_eeGeneral.chkSum = evalChkSum();
} }
postRadioSettingsLoad();
return error; return error;
} }
+5
View File
@@ -93,6 +93,11 @@ void postRadioSettingsLoad()
serialSetMode(SP_VCP, UART_MODE_CLI); serialSetMode(SP_VCP, UART_MODE_CLI);
} }
#endif #endif
#if defined(DEFAULT_INTERNAL_MODULE)
if (!g_eeGeneral.internalModule) {
g_eeGeneral.internalModule = DEFAULT_INTERNAL_MODULE;
}
#endif
} }
#if defined(EXTERNAL_ANTENNA) && defined(INTERNAL_MODULE_PXX1) #if defined(EXTERNAL_ANTENNA) && defined(INTERNAL_MODULE_PXX1)