firmware: RTC setting via CLI

This commit is contained in:
ikari
2011-02-08 01:00:19 +01:00
parent 72b9444861
commit 0fae66fac2
2 changed files with 39 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ uint32_t get_fattime(void) {
read_rtc(&time);
return ((uint32_t)time.tm_year-80) << 25 |
((uint32_t)time.tm_mon+1) << 21 |
((uint32_t)time.tm_mon) << 21 |
((uint32_t)time.tm_mday) << 16 |
((uint32_t)time.tm_hour) << 11 |
((uint32_t)time.tm_min) << 5 |