Skip to content

Commit 2d8fa04

Browse files
committed
Add landing page for RTK Facet mosaic
1 parent a10e41e commit 2d8fa04

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

Firmware/RTK_Everywhere/menuPP.ino

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ MqttClient *menuppMqttClient;
3030

3131
bool productVariantSupportsAssistNow()
3232
{
33+
if (productVariant == RTK_EVK)
34+
return true;
3335
if (productVariant == RTK_FACET_MOSAIC)
3436
return false;
3537
if (productVariant == RTK_TORCH)
3638
return false;
3739
if (productVariant == RTK_POSTCARD)
3840
return false;
39-
return true;
41+
42+
systemPrintln("Uncaught productVariantSupportsAssistNow()");
43+
return false;
4044
}
4145

4246
void menuPointPerfectKeys()
@@ -759,7 +763,7 @@ void updateLBand()
759763
{
760764
// Reconstruct the firmware version
761765
snprintf(neoFirmwareVersion, sizeof(neoFirmwareVersion), "%s %d.%02d", i2cLBand.getFirmwareType(),
762-
i2cLBand.getFirmwareVersionHigh(), i2cLBand.getFirmwareVersionLow());
766+
i2cLBand.getFirmwareVersionHigh(), i2cLBand.getFirmwareVersionLow());
763767

764768
printNEOInfo(); // Print module firmware version
765769
}
@@ -791,8 +795,8 @@ void updateLBand()
791795
{
792796
LBandFreq = Regional_Information_Table[r].frequency;
793797
if (settings.debugCorrections == true)
794-
systemPrintf("Setting L-Band frequency to %s (%dHz)\r\n", Regional_Information_Table[r].name,
795-
LBandFreq);
798+
systemPrintf("Setting L-Band frequency to %s (%dHz)\r\n",
799+
Regional_Information_Table[r].name, LBandFreq);
796800
break;
797801
}
798802
}
@@ -801,15 +805,15 @@ void updateLBand()
801805
LBandFreq = Regional_Information_Table[settings.geographicRegion].frequency;
802806
if (settings.debugCorrections == true)
803807
systemPrintf("Error: Unknown L-Band geographic region. Using %s (%dHz)\r\n",
804-
Regional_Information_Table[settings.geographicRegion].name, LBandFreq);
808+
Regional_Information_Table[settings.geographicRegion].name, LBandFreq);
805809
}
806810
}
807811
else
808812
{
809813
LBandFreq = Regional_Information_Table[settings.geographicRegion].frequency;
810814
if (settings.debugCorrections == true)
811815
systemPrintf("No fix available for L-Band geographic region determination. Using %s (%dHz)\r\n",
812-
Regional_Information_Table[settings.geographicRegion].name, LBandFreq);
816+
Regional_Information_Table[settings.geographicRegion].name, LBandFreq);
813817
}
814818

815819
bool response = true;
@@ -887,8 +891,8 @@ void updateLBand()
887891
{
888892
LBandFreq = Regional_Information_Table[r].frequency;
889893
if (settings.debugCorrections == true)
890-
systemPrintf("Setting L-Band frequency to %s (%dHz)\r\n", Regional_Information_Table[r].name,
891-
LBandFreq);
894+
systemPrintf("Setting L-Band frequency to %s (%dHz)\r\n",
895+
Regional_Information_Table[r].name, LBandFreq);
892896
break;
893897
}
894898
}
@@ -897,15 +901,15 @@ void updateLBand()
897901
LBandFreq = Regional_Information_Table[settings.geographicRegion].frequency;
898902
if (settings.debugCorrections == true)
899903
systemPrintf("Error: Unknown L-Band geographic region. Using %s (%dHz)\r\n",
900-
Regional_Information_Table[settings.geographicRegion].name, LBandFreq);
904+
Regional_Information_Table[settings.geographicRegion].name, LBandFreq);
901905
}
902906
}
903907
else
904908
{
905909
LBandFreq = Regional_Information_Table[settings.geographicRegion].frequency;
906910
if (settings.debugCorrections == true)
907911
systemPrintf("No fix available for L-Band geographic region determination. Using %s (%dHz)\r\n",
908-
Regional_Information_Table[settings.geographicRegion].name, LBandFreq);
912+
Regional_Information_Table[settings.geographicRegion].name, LBandFreq);
909913
}
910914

911915
bool result = true;
@@ -930,7 +934,7 @@ void updateLBand()
930934
online.lband_gnss = true;
931935
}
932936
}
933-
//else if (online.lband_gnss && settings.enablePointPerfectCorrections)
937+
// else if (online.lband_gnss && settings.enablePointPerfectCorrections)
934938
{
935939
// If no SPARTN data is received, the L-Band may need a 'kick'. Turn L-Band off and back on again!
936940
// But gnss->update will do this. No need to do it here
@@ -1427,6 +1431,9 @@ void provisioningUpdate()
14271431
else if (productVariant == RTK_POSTCARD)
14281432
snprintf(landingPageUrl, sizeof(landingPageUrl),
14291433
"or goto https://www.sparkfun.com/rtk_postcard_registration ");
1434+
else if (productVariant == RTK_FACET_MOSAIC)
1435+
snprintf(landingPageUrl, sizeof(landingPageUrl),
1436+
"or goto https://www.sparkfun.com/rtk_facet_mosaic_registration ");
14301437
else
14311438
systemPrintln("pointperfectProvisionDevice(): Platform missing landing page");
14321439

@@ -1456,6 +1463,9 @@ void provisioningUpdate()
14561463
else if (productVariant == RTK_POSTCARD)
14571464
snprintf(landingPageUrl, sizeof(landingPageUrl),
14581465
"or goto https://www.sparkfun.com/rtk_postcard_registration ");
1466+
else if (productVariant == RTK_FACET_MOSAIC)
1467+
snprintf(landingPageUrl, sizeof(landingPageUrl),
1468+
"or goto https://www.sparkfun.com/rtk_facet_mosaic_registration ");
14591469
else
14601470
systemPrintln("pointperfectProvisionDevice(): Platform missing landing page");
14611471

0 commit comments

Comments
 (0)