From 58c827a9e814d109bb2962f76f9c89f06dd26be7 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 2 Nov 2018 03:52:06 +0100 Subject: [PATCH] The RTC tick no longer incorrectly increases the month by two on month change. --- src/nvr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nvr.c b/src/nvr.c index 8a70300b6..ca55ed626 100644 --- a/src/nvr.c +++ b/src/nvr.c @@ -8,7 +8,7 @@ * * Implement a generic NVRAM/CMOS/RTC device. * - * Version: @(#)nvr.c 1.0.16 2018/11/01 + * Version: @(#)nvr.c 1.0.17 2018/11/02 * * Authors: Fred N. van Kempen, , * David Hrdlička, @@ -127,7 +127,6 @@ rtc_tick(void) if (++intclk.tm_mday == (nvr_get_days(intclk.tm_mon, intclk.tm_year) + 1)) { intclk.tm_mday = 1; - intclk.tm_mon++; if (++intclk.tm_mon == 13) { intclk.tm_mon = 1; intclk.tm_year++;