Merge pull request #129 from foodini/patch-1
Fix issue with millisecond parsing.
This commit is contained in:
commit
737f8b7d2c
|
|
@ -785,7 +785,7 @@ bool Adafruit_GPS::parseTime(char *p) {
|
|||
char *dec = strchr(p, '.');
|
||||
char *comstar = min(strchr(p, ','), strchr(p, '*'));
|
||||
if (dec != NULL && comstar != NULL && dec < comstar)
|
||||
milliseconds = atof(p) * 1000;
|
||||
milliseconds = atof(dec) * 1000;
|
||||
else
|
||||
milliseconds = 0;
|
||||
lastTime = sentTime;
|
||||
|
|
|
|||
Loading…
Reference in New Issue