From c89ec67333e404f495919385d9b076a79d178df3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 22 Jun 2023 14:21:43 +1000 Subject: [PATCH] AP_GPS: move AP_RTC::mktime to be ap_mktime in preparation for AP_RTC_ENABLED --- libraries/AP_GPS/GPS_Backend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_GPS/GPS_Backend.cpp b/libraries/AP_GPS/GPS_Backend.cpp index b6379abde3..89cff87262 100644 --- a/libraries/AP_GPS/GPS_Backend.cpp +++ b/libraries/AP_GPS/GPS_Backend.cpp @@ -17,7 +17,7 @@ #include "GPS_Backend.h" #include #include -#include +#include #include #define GPS_BACKEND_DEBUGGING 0 @@ -96,7 +96,7 @@ void AP_GPS_Backend::make_gps_time(uint32_t bcd_date, uint32_t bcd_milliseconds) tm.tm_hour = v % 100U; // convert from time structure to unix time - time_t unix_time = AP::rtc().mktime(&tm); + time_t unix_time = ap_mktime(&tm); // convert to time since GPS epoch const uint32_t unix_to_GPS_secs = 315964800UL;