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-d51de3d6d3f4
master
barthess 2012-09-20 20:32:01 +00:00
parent bd58700cd5
commit 341b767005
1 changed files with 1 additions and 1 deletions

View File

@ -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;