summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2012-04-10 21:51:27 +0200
committerChristian Franke <nobody@nowhere.ws>2012-04-10 21:51:27 +0200
commit313db8238b0014df203cb3c36102928087a32af8 (patch)
tree4e4e82ae50ee26c90f852f90e8014abe4541dc6d
parent0a60a76afcf938c6885395fb16b6c168179921e5 (diff)
fix month counting
-rw-r--r--clock.c2
1 files changed, 1 insertions, 1 deletions
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 ){