From 0c3a229030656eccc535f88087020379f4d0dee5 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 30 Sep 2014 10:23:05 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7333 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c index efe843f64..0b471b8f5 100644 --- a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c +++ b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c @@ -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; } /**