From 313db8238b0014df203cb3c36102928087a32af8 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 10 Apr 2012 21:51:27 +0200 Subject: fix month counting --- clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clock.c b/clock.c index f40c6aa..3068816 100644 --- a/clock.c +++ b/clock.c @@ -41,7 +41,7 @@ void clock(void) i = time.month; if( i == 2 && (time.year & 3) == 0 ) // leap year i = 0; - if( LPM(MDAYS+1) == time.day ){ + if( LPM(MDAYS+i) < time.day ){ time.day = 1; time.month++; if( time.month == 13 ){ -- cgit v1.2.1