1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/rtt_rtc: normalize tm struct in rtc_set_alarm

This commit is contained in:
Gunar Schorcht 2022-06-12 15:57:04 +02:00
parent ca0e651f74
commit ded656a67b

View File

@ -182,6 +182,8 @@ int rtc_set_alarm(struct tm *time, rtc_alarm_cb_t cb, void *arg)
uint32_t now = rtt_get_counter();
rtc_tm_normalize(time);
alarm_time = rtc_mktime(time);
alarm_cb_arg = arg;
alarm_cb = cb;