Skip to content

Commit 12a9311

Browse files
committed
Check message defaults after settings are loaded
1 parent df71282 commit 12a9311

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Firmware/RTK_Surveyor/Begin.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,9 +680,6 @@ void beginGNSS()
680680
//Auto-send Valset messages before the buffer is completely full
681681
theGNSS.autoSendCfgValsetAtSpaceRemaining(16);
682682

683-
//Check if the ubxMessageRates or ubxMessageRatesBase need to be defaulted
684-
checkMessageRates();
685-
686683
//Check the firmware version of the ZED-F9P. Based on Example21_ModuleInfo.
687684
if (theGNSS.getModuleInfo(1100) == true) //Try to get the module info
688685
{
@@ -741,6 +738,9 @@ void configureGNSS()
741738

742739
if (online.gnss == false) return;
743740

741+
//Check if the ubxMessageRates or ubxMessageRatesBase need to be defaulted
742+
checkMessageRates();
743+
744744
theGNSS.setAutoPVTcallbackPtr(&storePVTdata); //Enable automatic NAV PVT messages with callback to storePVTdata
745745
theGNSS.setAutoHPPOSLLHcallbackPtr(&storeHPdata); //Enable automatic NAV HPPOSLLH messages with callback to storeHPdata
746746

Firmware/RTK_Surveyor/NVM.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,8 +1291,6 @@ bool parseLine(char* str, Settings *settings)
12911291

12921292
snprintf(tempString, sizeof(tempString), "messageBase.%s.msgRate", ubxMessages[firstRTCMRecord + x].msgTextName);
12931293

1294-
Serial.printf("Looking for % s in % s\r\n", tempString, settingName);
1295-
12961294
if (strcmp(settingName, tempString) == 0)
12971295
{
12981296
if (settings->ubxMessageRatesBase[x] != d)

0 commit comments

Comments
 (0)