fix: Internal module setting and applying post load fixes on radio settings (#1787)
This commit is contained in:
@@ -129,15 +129,12 @@ const char * loadRadioSettings()
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(DEFAULT_INTERNAL_MODULE)
|
||||
g_eeGeneral.internalModule = DEFAULT_INTERNAL_MODULE;
|
||||
#endif
|
||||
|
||||
const char* error = loadRadioSettingsYaml();
|
||||
if (!error) {
|
||||
g_eeGeneral.chkSum = evalChkSum();
|
||||
}
|
||||
|
||||
postRadioSettingsLoad();
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
|
||||
@@ -93,6 +93,11 @@ void postRadioSettingsLoad()
|
||||
serialSetMode(SP_VCP, UART_MODE_CLI);
|
||||
}
|
||||
#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)
|
||||
|
||||
Reference in New Issue
Block a user