diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
/**
|