@@ -866,7 +866,7 @@ SettingValueResponse updateSettingWithValue(bool inCommands, const char *setting
866866 case tCorrSPri: {
867867 for (int x = 0 ; x < qualifier; x++)
868868 {
869- if ((suffix[0 ] == correctionsSourceNames[x] [0 ]) && (strcmp (suffix, correctionsSourceNames[x] ) == 0 ))
869+ if ((suffix[0 ] == correctionGetName (x) [0 ]) && (strcmp (suffix, correctionGetName (x) ) == 0 ))
870870 {
871871 settings.correctionsSourcesPriority [x] = settingValue;
872872 knownSetting = true ;
@@ -1514,7 +1514,7 @@ void createSettingsString(char *newSettings)
15141514 {
15151515 char tempString[80 ]; // correctionsPriority.Ethernet_IP_(PointPerfect/MQTT)=99
15161516 snprintf (tempString, sizeof (tempString), " %s%s,%0d," , rtkSettingsEntries[i].name ,
1517- correctionsSourceNames[x] , settings.correctionsSourcesPriority [x]);
1517+ correctionGetName (x) , settings.correctionsSourcesPriority [x]);
15181518 stringRecord (newSettings, tempString);
15191519 }
15201520 }
@@ -2220,7 +2220,7 @@ SettingValueResponse getSettingValue(bool inCommands, const char *settingName, c
22202220 case tCorrSPri: {
22212221 for (int x = 0 ; x < qualifier; x++)
22222222 {
2223- if ((suffix[0 ] == correctionsSourceNames[x] [0 ]) && (strcmp (suffix, correctionsSourceNames[x] ) == 0 ))
2223+ if ((suffix[0 ] == correctionGetName (x) [0 ]) && (strcmp (suffix, correctionGetName (x) ) == 0 ))
22242224 {
22252225 writeToString (settingValueStr, settings.correctionsSourcesPriority [x]);
22262226 knownSetting = true ;
@@ -2624,7 +2624,7 @@ void commandList(bool inCommands, int i)
26242624 // Record corrections priorities
26252625 for (int x = 0 ; x < rtkSettingsEntries[i].qualifier ; x++)
26262626 {
2627- snprintf (settingName, sizeof (settingName), " %s%s" , rtkSettingsEntries[i].name , correctionsSourceNames[x] );
2627+ snprintf (settingName, sizeof (settingName), " %s%s" , rtkSettingsEntries[i].name , correctionGetName (x) );
26282628
26292629 getSettingValue (inCommands, settingName, settingValue);
26302630 commandSendExecuteListResponse (settingName, " int" , settingValue);
0 commit comments