Skip to content

Commit 3f29926

Browse files
committed
Fix passing of platformPrefix into stringRecord.
1 parent bfd9ee4 commit 3f29926

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Firmware/RTK_Surveyor/Form.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,9 @@ void createSettingsString(char *newSettings)
622622
newSettings[0] = '\0'; // Erase current settings string
623623

624624
// System Info
625-
stringRecord(newSettings, "platformPrefix", platformPrefix);
625+
char apPlatformPrefix[80];
626+
strncpy(apPlatformPrefix, platformPrefixTable[productVariant], sizeof(apPlatformPrefix));
627+
stringRecord(newSettings, "platformPrefix", apPlatformPrefix);
626628

627629
char apRtkFirmwareVersion[86];
628630
getFirmwareVersion(apRtkFirmwareVersion, sizeof(apRtkFirmwareVersion), true);

0 commit comments

Comments
 (0)