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

cpu/atmega_common: RTC: fix off-by-one normalisation

This commit is contained in:
Benjamin Valentin 2021-05-04 17:56:13 +02:00
parent 46a5c34c5e
commit 2d706b3295

View File

@ -38,7 +38,7 @@ ISR(TIMER2_OVF_vect)
isr_flag = !isr_flag;
if (++tm_now.tm_sec > 60) {
if (++tm_now.tm_sec > 59) {
rtc_tm_normalize(&tm_now);
}