Skip to content

Commit 4177e83

Browse files
committed
Remove print of string with potentially no terminator
1 parent 4407c63 commit 4177e83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/RTK_Surveyor/NVM.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ bool getSettings(uint8_t fileNumber, Settings &localSettings)
7676
//(It is possible for two different versions of the code to have the same sizeOfSettings - which causes problems!)
7777
if (localSettings.rtkIdentifier != RTK_IDENTIFIER)
7878
{
79-
log_d("Settings are not valid for this variant of RTK %s. Found %s, should be %s. Using default settings.", platformPrefix, settings.rtkIdentifier, RTK_IDENTIFIER);
79+
log_d("Settings are not valid for this variant of RTK %s. Found 0x%02X, should be 0x%02X. Using default settings.", platformPrefix, localSettings.rtkIdentifier, RTK_IDENTIFIER);
8080
return (false);
8181
}
8282

@@ -815,7 +815,7 @@ bool parseLine(char* str) {
815815
//Last catch
816816
if (knownSetting == false)
817817
{
818-
Serial.printf("Unknown setting %s on line: %s\r\n", settingName, str);
818+
Serial.printf("Unknown setting %s\r\n", settingName);
819819
}
820820
}
821821

0 commit comments

Comments
 (0)