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:
parent
ca0e651f74
commit
ded656a67b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user