Merge pull request #129 from foodini/patch-1

Fix issue with millisecond parsing.
This commit is contained in:
Matt Goodrich 2020-10-27 17:15:50 -04:00 committed by GitHub
commit 737f8b7d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;