File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments