fix: ignore invalid GVAR feature flag on BW128 UI (#4671)
This commit is contained in:
@@ -79,6 +79,12 @@ void preModelLoad()
|
|||||||
|
|
||||||
void postRadioSettingsLoad()
|
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 defined(PXX2)
|
||||||
if (is_memclear(g_eeGeneral.ownerRegistrationID, PXX2_LEN_REGISTRATION_ID)) {
|
if (is_memclear(g_eeGeneral.ownerRegistrationID, PXX2_LEN_REGISTRATION_ID)) {
|
||||||
setDefaultOwnerId();
|
setDefaultOwnerId();
|
||||||
@@ -169,6 +175,10 @@ void postModelLoad(bool alarms)
|
|||||||
storageDirty(EE_MODEL);
|
storageDirty(EE_MODEL);
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
#endif
|
||||||
|
|
||||||
// Convert 'noGlobalFunctions' to 'radioGFDisabled'
|
// Convert 'noGlobalFunctions' to 'radioGFDisabled'
|
||||||
|
|||||||
Reference in New Issue
Block a user