@@ -101,7 +101,6 @@ uint8_t getProfileNumber()
101101 else
102102 {
103103 profileNumber = fileProfileNumber.read ();
104- updateZEDSettings = fileProfileNumber.read ();
105104 fileProfileNumber.close ();
106105 }
107106
@@ -217,7 +216,7 @@ void recordProfileNumber(uint8_t profileNumber, bool markForUpdate)
217216 return ;
218217 }
219218 fileProfileNumber.write (profileNumber);
220- fileProfileNumber.write (markForUpdate); // If true, ZED will be config'd next POR
219+ fileProfileNumber.write (markForUpdate); // If true, ZED will be config'd next POR
221220 fileProfileNumber.close ();
222221}
223222
@@ -357,6 +356,7 @@ void recordSystemSettingsToFile()
357356 settingsFile.println (" ntripClient_wifiSSID=" + (String)settings.ntripClient_wifiSSID );
358357 settingsFile.println (" ntripClient_wifiPW=" + (String)settings.ntripClient_wifiPW );
359358 settingsFile.println (" ntripClient_TransmitGGA=" + (String)settings.ntripClient_TransmitGGA );
359+ settingsFile.println (" serialTimeoutGNSS=" + (String)settings.serialTimeoutGNSS );
360360
361361 // Record constellation settings
362362 for (int x = 0 ; x < MAX_CONSTELLATIONS ; x++)
@@ -633,9 +633,21 @@ bool parseLine(char* str) {
633633 }
634634 }
635635 else if (strcmp (settingName, " dataPortBaud" ) == 0 )
636- settings.dataPortBaud = d;
636+ {
637+ if (settings.dataPortBaud != d)
638+ {
639+ settings.dataPortBaud = d;
640+ updateZEDSettings = true ;
641+ }
642+ }
637643 else if (strcmp (settingName, " radioPortBaud" ) == 0 )
638- settings.radioPortBaud = d;
644+ {
645+ if (settings.radioPortBaud != d)
646+ {
647+ settings.radioPortBaud = d;
648+ updateZEDSettings = true ;
649+ }
650+ }
639651 else if (strcmp (settingName, " surveyInStartingAccuracy" ) == 0 )
640652 settings.surveyInStartingAccuracy = d;
641653 else if (strcmp (settingName, " measurementRate" ) == 0 )
@@ -786,6 +798,8 @@ bool parseLine(char* str) {
786798 strcpy (settings.ntripClient_wifiPW , settingValue);
787799 else if (strcmp (settingName, " ntripClient_TransmitGGA" ) == 0 )
788800 settings.ntripClient_TransmitGGA = d;
801+ else if (strcmp (settingName, " serialTimeoutGNSS" ) == 0 )
802+ settings.serialTimeoutGNSS = d;
789803
790804 // Check for bulk settings (constellations and message rates)
791805 // Must be last on else list
0 commit comments