summaryrefslogtreecommitdiff
path: root/avr/date.c
diff options
context:
space:
mode:
authorLeo C2014-12-01 11:13:52 +0100
committerLeo C2014-12-01 11:13:52 +0100
commitc93a1fd4f52e215c7fde5a207fff66015d0c4822 (patch)
tree8c98c7d76c623951c2735c457ac1ca65a990161f /avr/date.c
parent4565be9a755c4de8ffdbc8b9a7b2d87c87f7a9e1 (diff)
downloadz180-stamp-c93a1fd4f52e215c7fde5a207fff66015d0c4822.zip
put weekdays[] in flash, workaround for wrong weekday display
Diffstat (limited to 'avr/date.c')
-rw-r--r--avr/date.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/avr/date.c b/avr/date.c
index c85361f..5caee2f 100644
--- a/avr/date.c
+++ b/avr/date.c
@@ -23,7 +23,7 @@
#define days_in_month(a) (month_days[(a) - 1])
-static const FLASH int MonthOffset[] = {
+static const FLASH int MonthOffset[] = {
0,31,59,90,120,151,181,212,243,273,304,334
};
@@ -136,4 +136,3 @@ mktime (unsigned int year, unsigned int mon,
)*60 + min /* now have minutes */
)*60 + sec; /* finally seconds */
}
-