From 341b76700595911cdec3891a2e1d86cc6c41eb9b Mon Sep 17 00:00:00 2001 From: barthess Date: Thu, 20 Sep 2012 20:32:01 +0000 Subject: 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 --- os/hal/platforms/STM32/RTCv2/rtc_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/STM32/RTCv2') diff --git a/os/hal/platforms/STM32/RTCv2/rtc_lld.c b/os/hal/platforms/STM32/RTCv2/rtc_lld.c index 48a81dd96..34406e1a3 100644 --- a/os/hal/platforms/STM32/RTCv2/rtc_lld.c +++ b/os/hal/platforms/STM32/RTCv2/rtc_lld.c @@ -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; -- cgit v1.2.3