git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7333 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2014-09-30 10:23:05 +00:00
parent 4846421f19
commit 0c3a229030
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ static void rtc_decode_date(uint32_t dr, RTCDateTime *timespec) {
((dr >> RTC_TR_MNU_OFFSET) & 15);
timespec->day = (((dr >> RTC_DR_DT_OFFSET) & 3) * 10) +
((dr >> RTC_DR_DU_OFFSET) & 15);
timespec->dayofweek = (dr >> RTC_DR_WDU_OFFSET) & 1;
timespec->dayofweek = (dr >> RTC_DR_WDU_OFFSET) & 7;
}
/**