git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7333 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
4846421f19
commit
0c3a229030
|
@ -138,7 +138,7 @@ static void rtc_decode_date(uint32_t dr, RTCDateTime *timespec) {
|
||||||
((dr >> RTC_TR_MNU_OFFSET) & 15);
|
((dr >> RTC_TR_MNU_OFFSET) & 15);
|
||||||
timespec->day = (((dr >> RTC_DR_DT_OFFSET) & 3) * 10) +
|
timespec->day = (((dr >> RTC_DR_DT_OFFSET) & 3) * 10) +
|
||||||
((dr >> RTC_DR_DU_OFFSET) & 15);
|
((dr >> RTC_DR_DU_OFFSET) & 15);
|
||||||
timespec->dayofweek = (dr >> RTC_DR_WDU_OFFSET) & 1;
|
timespec->dayofweek = (dr >> RTC_DR_WDU_OFFSET) & 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue