RTCv2. Fixed wrong seconds handling in fat time stamp.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4704 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
bd58700cd5
commit
341b767005
|
@ -290,7 +290,7 @@ uint32_t rtc_lld_get_time_fat(RTCDriver *rtcp) {
|
|||
|
||||
v = (tv_time & RTC_TR_SU) >> RTC_TR_SU_OFFSET;
|
||||
v += ((tv_time & RTC_TR_ST) >> RTC_TR_ST_OFFSET) * 10;
|
||||
fattime = v << 1;
|
||||
fattime = v >> 1;
|
||||
|
||||
v = (tv_time & RTC_TR_MNU) >> RTC_TR_MNU_OFFSET;
|
||||
v += ((tv_time & RTC_TR_MNT) >> RTC_TR_MNT_OFFSET) * 10;
|
||||
|
|
Loading…
Reference in New Issue