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;
|
||||
|
||||
if (++tm_now.tm_sec > 60) {
|
||||
if (++tm_now.tm_sec > 59) {
|
||||
rtc_tm_normalize(&tm_now);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user