Skip to content

Commit daba9f8

Browse files
committed
Fix for issue 47 - pure numbers for SSID, PW, Mount point, MPPW, etc are now recorded correctly.
1 parent d7c19b2 commit daba9f8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Firmware/RTK_Surveyor/NVM.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ bool parseLine(char* str) {
291291
else
292292
{
293293
if (str == ptr || *skipSpace(ptr)) return false; //Check str pointer
294+
295+
//See issue https://github.com/sparkfun/SparkFun_RTK_Firmware/issues/47
296+
sprintf(settingValue, "%1.0lf", d); //Catch when the input is pure numbers (strtod was successful), store as settingValue
294297
}
295298

296299
// Get setting name

Firmware/RTK_Surveyor/Rover.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ uint8_t locateGNSSID(uint8_t *customPayload, uint8_t constellation)
205205
return (4 + x * 8);
206206
}
207207

208-
Serial.println(F("locateGNSSID failed"));
208+
Serial.print(F("locateGNSSID failed: "));
209+
Serial.println(constellation);
209210
return (0);
210211
}
211212

0 commit comments

Comments
 (0)