From 178cf7c2dae36f6d9ec2cc754174874dff4dbebc Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Wed, 26 Jun 2024 16:21:07 +1000 Subject: [PATCH] AP_GPS: use 64 bit time in the pps interrupt callback in ublox driver --- libraries/AP_GPS/AP_GPS_UBLOX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.cpp b/libraries/AP_GPS/AP_GPS_UBLOX.cpp index f9308b8fc3cdc..81b33dc5a0beb 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.cpp +++ b/libraries/AP_GPS/AP_GPS_UBLOX.cpp @@ -1835,7 +1835,7 @@ AP_GPS_UBLOX::_parse_gps(void) void AP_GPS_UBLOX::pps_interrupt(uint8_t pin, bool high, uint32_t timestamp_us) { - _last_pps_time_us = timestamp_us; + _last_pps_time_us = AP_HAL::micros64(); } void