diff --git a/src/platforms/posix/drivers/gpssim/gpssim.cpp b/src/platforms/posix/drivers/gpssim/gpssim.cpp index 8eef4f1fb1..1cd69d069e 100644 --- a/src/platforms/posix/drivers/gpssim/gpssim.cpp +++ b/src/platforms/posix/drivers/gpssim/gpssim.cpp @@ -275,7 +275,7 @@ GPSSIM::receive(int timeout) simulator::RawGPSData gps; sim->getGPSSample((uint8_t *)&gps, sizeof(gps)); - static uint64_t timestamp_last = 0; + static int64_t timestamp_last = 0; if (gps.timestamp != timestamp_last) { _report_gps_pos.timestamp = hrt_absolute_time();