AP_RTC: move AP_RTC::mktime to be ap_mktime

in preparation for AP_RTC_ENABLED
This commit is contained in:
Peter Barker 2023-06-22 14:21:43 +10:00 committed by Andrew Tridgell
parent c89ec67333
commit 84e4a45dc3
2 changed files with 2 additions and 5 deletions

View File

@ -3,7 +3,7 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_Math/AP_Math.h>
#include <GCS_MAVLink/GCS.h>
#include <time.h>
#include <AP_Common/time.h>
extern const AP_HAL::HAL& hal;
@ -209,7 +209,7 @@ uint32_t AP_RTC::get_time_utc(int32_t hour, int32_t min, int32_t sec, int32_t ms
/*
mktime replacement from Samba
*/
time_t AP_RTC::mktime(const struct tm *t)
time_t ap_mktime(const struct tm *t)
{
time_t epoch = 0;
int n;

View File

@ -44,9 +44,6 @@ public:
uint32_t get_time_utc(int32_t hour, int32_t min, int32_t sec, int32_t ms);
// replacement for mktime()
static time_t mktime(const struct tm *t);
// get singleton instance
static AP_RTC *get_singleton() {
return _singleton;