Skip to content

Commit 0d2877c

Browse files
committed
Correct createSettingsString for tNSCEn
tNSCEn is an array of bool - for checkboxes We need to send true / false, not 1 / 0
1 parent c17d700 commit 0d2877c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/RTK_Everywhere/menuCommands.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,8 +1602,8 @@ void createSettingsString(char *newSettings)
16021602
for (int x = 0; x < rtkSettingsEntries[i].qualifier; x++)
16031603
{
16041604
char tempString[50];
1605-
snprintf(tempString, sizeof(tempString), "%s%d,%d,", rtkSettingsEntries[i].name, x,
1606-
settings.ntripServer_CasterEnabled[x]);
1605+
snprintf(tempString, sizeof(tempString), "%s%d,%s,", rtkSettingsEntries[i].name, x,
1606+
settings.ntripServer_CasterEnabled[x] ? "true" : "false");
16071607
stringRecord(newSettings, tempString);
16081608
}
16091609
}

0 commit comments

Comments
 (0)