From ac2fea97668924abb351536b9d0fd817c6678021 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 22 Jun 2023 14:21:43 +1000 Subject: [PATCH] AP_Filesystem: move AP_RTC::mktime to be ap_mktime in preparation for AP_RTC_ENABLED --- libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp b/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp index 58b387b553..f728b3362c 100644 --- a/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp +++ b/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include @@ -564,7 +564,7 @@ static time_t fat_time_to_unix(uint16_t date, uint16_t time) tp.tm_mday = (date & 0x1f); tp.tm_mon = ((date >> 5) & 0x0f) - 1; tp.tm_year = ((date >> 9) & 0x7f) + 80; - unix = AP::rtc().mktime(&tp); + unix = ap_mktime(&tp); return unix; }