UBlox: Check valid time bit for NAV_TIMEUTC messages (used for Ublox 6 and earlier)

This commit is contained in:
Johan Jansen 2015-04-10 09:56:05 +02:00
parent 891a7af509
commit 051b7b853e
1 changed files with 1 additions and 0 deletions

View File

@ -827,6 +827,7 @@ UBX::payload_rx_done(void)
case UBX_MSG_NAV_TIMEUTC:
UBX_TRACE_RXMSG("Rx NAV-TIMEUTC\n");
if(_buf.payload_rx_nav_timeutc.valid & UBX_RX_NAV_TIMEUTC_VALID_VALIDUTC)
{
// convert to unix timestamp
struct tm timeinfo;