mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
cpu/atmega_common: RTC: fix off-by-one normalisation
This commit is contained in:
parent
46a5c34c5e
commit
2d706b3295
@ -38,7 +38,7 @@ ISR(TIMER2_OVF_vect)
|
|||||||
|
|
||||||
isr_flag = !isr_flag;
|
isr_flag = !isr_flag;
|
||||||
|
|
||||||
if (++tm_now.tm_sec > 60) {
|
if (++tm_now.tm_sec > 59) {
|
||||||
rtc_tm_normalize(&tm_now);
|
rtc_tm_normalize(&tm_now);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user