fix: ignore invalid GVAR feature flag on BW128 UI (#4671)

This commit is contained in:
3djc
2024-02-26 10:21:15 +10:00
committed by GitHub
parent 49331bba4d
commit 21e610028f
+10
View File
@@ -79,6 +79,12 @@ void preModelLoad()
void postRadioSettingsLoad()
{
#if LCD_W == 128
// Prevent GVARS to be off when imported or manually modified yaml
// Since there is no way to have those back
g_eeGeneral.modelGVDisabled = false;
#endif
#if defined(PXX2)
if (is_memclear(g_eeGeneral.ownerRegistrationID, PXX2_LEN_REGISTRATION_ID)) {
setDefaultOwnerId();
@@ -169,6 +175,10 @@ void postModelLoad(bool alarms)
storageDirty(EE_MODEL);
}
#endif
#elif LCD_W == 128
// Prevent GVARS to be off when imported or manually modified yaml
// Since there is no way to have those back
g_model.modelGVDisabled = false;
#endif
// Convert 'noGlobalFunctions' to 'radioGFDisabled'