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
|
#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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user