Skip to content

Commit

Permalink
Merge pull request #13235 from benpicco/backport/2020.01/lpc2387-rtc-fix
Browse files Browse the repository at this point in the history
cpu/lpc2387: rtc: set rtc callback arg [backport 2020.01]
  • Loading branch information
benpicco authored Jan 29, 2020
2 parents 3b3e290 + 43fd2eb commit e347f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/lpc2387/periph/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ int rtc_get_time(struct tm *localt)

int rtc_set_alarm(struct tm *localt, rtc_alarm_cb_t cb, void *arg)
{
(void) arg;
if (localt != NULL) {
/* normalize input */
rtc_tm_normalize(localt);
Expand All @@ -132,6 +131,7 @@ int rtc_set_alarm(struct tm *localt, rtc_alarm_cb_t cb, void *arg)
RTC_ALDOM, RTC_ALMON, RTC_ALYEAR, RTC_ALHOUR, RTC_ALMIN, RTC_ALSEC);

_cb = cb;
_cb_arg = arg;
return 0;
}
else if (cb == NULL) {
Expand Down

0 comments on commit e347f0a

Please sign in to comment.