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()
101
101
else
102
102
{
103
103
profileNumber = fileProfileNumber.read ();
104
- updateZEDSettings = fileProfileNumber.read ();
105
104
fileProfileNumber.close ();
106
105
}
107
106
@@ -634,9 +633,21 @@ bool parseLine(char* str) {
634
633
}
635
634
}
636
635
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
+ }
638
643
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
+ }
640
651
else if (strcmp (settingName, " surveyInStartingAccuracy" ) == 0 )
641
652
settings.surveyInStartingAccuracy = d;
642
653
else if (strcmp (settingName, " measurementRate" ) == 0 )
You can’t perform that action at this time.
0 commit comments