Commit Graph

5 Commits

Author SHA1 Message Date
Edgar Bonet 939534d580 Correct handling of millis() rollover
millis() returns an unsigned long integer, and C++ guarantees that
arithmetics on this type work modulo (ULONG_MAX+1). This behavior
ensures that computing a delay as

    millis() - previousMillis

yields the correct result across millis() rollover events, as long as
the time actually elapsed is less than about 49.7 days.
2020-02-20 22:03:34 +01:00
Rick Sellens bc038a14cf Example updates 2020-01-29 09:33:26 -05:00
Rick Sellens c8d4e037e7 clanged files 2020-01-18 10:23:14 -05:00
Rick Sellens a41cbce062 Add build() example to GPS_Hardware_Serial_Timing.ino 2020-01-18 09:18:13 -05:00
sellensr e121bb53c8 Track when sentence received
Improve the time information by tracking from when a sentence is received, rather than when it is parsed. Track last valid Date, Time, and Fix separately.
2019-04-20 13:51:00 -04:00