From 630cb7f6f2e1de4bdb27bf8920ffaf147bfdd8a3 Mon Sep 17 00:00:00 2001 From: Pawel Jalocha Date: Thu, 17 May 2018 17:20:10 +0000 Subject: [PATCH] Fix bug in the long numeric constant --- main/gps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/gps.cpp b/main/gps.cpp index fad6f11..bca3c37 100644 --- a/main/gps.cpp +++ b/main/gps.cpp @@ -536,7 +536,7 @@ static void GPS_MAV(void) // wh } else if(MsgID==MAV_ID_GPS_RAW_INT) { MAV_GPS_RAW_INT *RawGPS = (MAV_GPS_RAW_INT *)MAV.getPayload(); uint64_t UnixTime_ms = RawGPS->time_usec/1000; - if(UnixTime_ms<(uint64)1000000000000) UnixTime_ms += MAV_TimeOfs_ms; + if(UnixTime_ms<1000000000000) UnixTime_ms += MAV_TimeOfs_ms; // RawGPS->time_usec += (int64_t)MAV_TimeOfs_ms*1000; Position[PosIdx].Read(RawGPS, UnixTime_ms); #ifdef DEBUG_PRINT