summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ){