Skip to content

Commit 81fd73f

Browse files
committed
avoid GGA sentence to overwrite time, leaving inconsistent date
1 parent a7252c8 commit 81fd73f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: sam/1.0.5/libraries/TinyGPS/TinyGPS.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ bool TinyGPS::term_complete()
191191
break;
192192
case _GPS_SENTENCE_GPGGA:
193193
_altitude = _new_altitude;
194-
_time = _new_time;
195194
_latitude = _new_latitude;
196195
_longitude = _new_longitude;
197196
_numsats = _new_numsats;
@@ -228,7 +227,6 @@ bool TinyGPS::term_complete()
228227
switch(COMBINE(_sentence_type, _term_number))
229228
{
230229
case COMBINE(_GPS_SENTENCE_GPRMC, 1): // Time in both sentences
231-
case COMBINE(_GPS_SENTENCE_GPGGA, 1):
232230
_new_time = parse_decimal();
233231
_new_time_fix = millis();
234232
break;

0 commit comments

Comments
 (0)