Skip to content

Commit 3ee7a75

Browse files
committed
Turn off menu if PointPerfect service does not apply
1 parent 63e2e88 commit 3ee7a75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Firmware/RTK_Everywhere/States.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,11 +861,13 @@ void constructSetupDisplay(std::vector<setupButton> *buttons)
861861

862862
addSetupButton(buttons, "Config", STATE_WEB_CONFIG_NOT_STARTED);
863863

864-
if (pointPerfectIsEnabled())
864+
if (pointPerfectIsEnabled() && pointPerfectServiceUsesKeys())
865865
{
866866
addSetupButton(buttons, "Get Keys", STATE_KEYS_REQUESTED);
867867
}
868+
868869
addSetupButton(buttons, "E-Pair", STATE_ESPNOW_PAIRING_NOT_STARTED);
870+
869871
// If only one active profile do not show any profiles
870872
if (getProfileCount() > 1)
871873
{

0 commit comments

Comments
 (0)