Browse Source

gpssim fix sign-compare

sbg
Daniel Agar 8 years ago committed by Beat Küng
parent
commit
8e3efc5135
  1. 2
      src/platforms/posix/drivers/gpssim/gpssim.cpp

2
src/platforms/posix/drivers/gpssim/gpssim.cpp

@ -275,7 +275,7 @@ GPSSIM::receive(int timeout) @@ -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();

Loading…
Cancel
Save