Skip to content

Commit 3d5c24c

Browse files
committed
Change platFlex to an enum
1 parent 25306d8 commit 3d5c24c

File tree

2 files changed

+265
-244
lines changed

2 files changed

+265
-244
lines changed

Firmware/RTK_Everywhere/menuCommands.ino

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3420,8 +3420,17 @@ bool settingAvailableOnPlatform(int i)
34203420
break;
34213421
if ((productVariant == RTK_POSTCARD) && rtkSettingsEntries[i].platPostcard)
34223422
break;
3423-
if ((productVariant == RTK_FLEX) && rtkSettingsEntries[i].platFlex)
3424-
break;
3423+
if (productVariant == RTK_FLEX)
3424+
{
3425+
// TODO: check if we need to tighten up the logic here
3426+
// Maybe settings.detectedGnssReceiver and Facet_Flex_Variant should be amalgamated somehow?
3427+
if (rtkSettingsEntries[i].platFlex == FFA) // All
3428+
break;
3429+
if ((rtkSettingsEntries[i].platFlex == FFL) && (settings.detectedGnssReceiver == GNSS_RECEIVER_LG290P))
3430+
break;
3431+
if ((rtkSettingsEntries[i].platFlex == FFM) && (settings.detectedGnssReceiver == GNSS_RECEIVER_MOSAIC_X5))
3432+
break;
3433+
}
34253434
return false;
34263435
} while (0);
34273436
return true;

0 commit comments

Comments
 (0)