aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/RTC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F4xx/RTC/main.c')
-rw-r--r--testhal/STM32/STM32F4xx/RTC/main.c4
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, &timespec);
- rtcConvertDateTimeToStructTm(&timespec, &tim);
+ rtcConvertDateTimeToStructTm(&timespec, &tim, NULL);
return mktime(&tim);
}
@@ -153,7 +153,7 @@ static time_t GetTimeUnixSec(void) {
*/
static void GetTimeTm(struct tm *timp) {
rtcGetTime(&RTCD1, &timespec);
- rtcConvertDateTimeToStructTm(&timespec, timp);
+ rtcConvertDateTimeToStructTm(&timespec, timp, NULL);
}
/*