diff options
Diffstat (limited to 'testhal/STM32/STM32F4xx/RTC/main.c')
-rw-r--r-- | testhal/STM32/STM32F4xx/RTC/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F4xx/RTC/main.c b/testhal/STM32/STM32F4xx/RTC/main.c index fff906a19..1c2b60082 100644 --- a/testhal/STM32/STM32F4xx/RTC/main.c +++ b/testhal/STM32/STM32F4xx/RTC/main.c @@ -144,7 +144,7 @@ static time_t GetTimeUnixSec(void) { struct tm tim;
rtcGetTime(&RTCD1, ×pec);
- rtcConvertDateTimeToStructTm(×pec, &tim);
+ rtcConvertDateTimeToStructTm(×pec, &tim, NULL);
return mktime(&tim);
}
@@ -153,7 +153,7 @@ static time_t GetTimeUnixSec(void) { */
static void GetTimeTm(struct tm *timp) {
rtcGetTime(&RTCD1, ×pec);
- rtcConvertDateTimeToStructTm(×pec, timp);
+ rtcConvertDateTimeToStructTm(×pec, timp, NULL);
}
/*
|