Merge pull request #4480 from pan-/fix_time_return

rtc_time: Fix incorrect return value when the calendar is not available.
pull/4478/head^2
Sam Grove 2017-06-08 15:52:46 -05:00 committed by GitHub
commit 9122ed60cd
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ time_t time(time_t *timer)
}
}
time_t t = 0;
time_t t = -1;
if (_rtc_read != NULL) {
t = _rtc_read();
}