Skip to content

Commit ac8e1cc

Browse files
committed
Fix for issue #100 - force ZED config if BT baud rate changes
1 parent 7435c56 commit ac8e1cc

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed
1.74 MB
Binary file not shown.

Firmware/RTK_Surveyor/NVM.ino

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ uint8_t getProfileNumber()
101101
else
102102
{
103103
profileNumber = fileProfileNumber.read();
104-
updateZEDSettings = fileProfileNumber.read();
105104
fileProfileNumber.close();
106105
}
107106

@@ -634,9 +633,21 @@ bool parseLine(char* str) {
634633
}
635634
}
636635
else if (strcmp(settingName, "dataPortBaud") == 0)
637-
settings.dataPortBaud = d;
636+
{
637+
if (settings.dataPortBaud != d)
638+
{
639+
settings.dataPortBaud = d;
640+
updateZEDSettings = true;
641+
}
642+
}
638643
else if (strcmp(settingName, "radioPortBaud") == 0)
639-
settings.radioPortBaud = d;
644+
{
645+
if (settings.radioPortBaud != d)
646+
{
647+
settings.radioPortBaud = d;
648+
updateZEDSettings = true;
649+
}
650+
}
640651
else if (strcmp(settingName, "surveyInStartingAccuracy") == 0)
641652
settings.surveyInStartingAccuracy = d;
642653
else if (strcmp(settingName, "measurementRate") == 0)

0 commit comments

Comments
 (0)