diff options
author | Leo C | 2014-12-01 11:13:52 +0100 |
---|---|---|
committer | Leo C | 2014-12-01 11:13:52 +0100 |
commit | c93a1fd4f52e215c7fde5a207fff66015d0c4822 (patch) | |
tree | 8c98c7d76c623951c2735c457ac1ca65a990161f /avr/date.c | |
parent | 4565be9a755c4de8ffdbc8b9a7b2d87c87f7a9e1 (diff) | |
download | z180-stamp-c93a1fd4f52e215c7fde5a207fff66015d0c4822.zip |
put weekdays[] in flash, workaround for wrong weekday display
Diffstat (limited to 'avr/date.c')
-rw-r--r-- | avr/date.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ } - |