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

Merge pull request #18197 from gschorcht/drivers/rtt_rtc_fix_set_alarm

drivers/rtt_rtc: normalize tm struct in rtc_set_alarm
This commit is contained in:
benpicco 2022-06-12 18:45:05 +02:00 committed by GitHub
commit 056b33a242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;