diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-08 15:24:48 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-08 15:24:48 +0000 |
commit | fdde2a438e5012776c5a6cd6eb44309d40050557 (patch) | |
tree | 455718d3fbf538584dbb29e571dd8bbeb049480f | |
parent | 06fbce25c213481f8af9f0b4e0fcfaca503a537a (diff) | |
download | ChibiOS-fdde2a438e5012776c5a6cd6eb44309d40050557.tar.gz ChibiOS-fdde2a438e5012776c5a6cd6eb44309d40050557.tar.bz2 ChibiOS-fdde2a438e5012776c5a6cd6eb44309d40050557.zip |
Fixed bug #664.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8445 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/src/rtc.c | 1 | ||||
-rw-r--r-- | readme.txt | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/src/rtc.c b/os/hal/src/rtc.c index 785b07721..b062184e6 100644 --- a/os/hal/src/rtc.c +++ b/os/hal/src/rtc.c @@ -226,6 +226,7 @@ void rtcConvertDateTimeToStructTm(const RTCDateTime *timespec, timp->tm_mon = (int)timespec->month - 1;
timp->tm_mday = (int)timespec->day;
timp->tm_isdst = (int)timespec->dstflag;
+ timp->tm_wday = (int)timespec->dayofweek - 1;
sec = (int)timespec->millisecond / 1000;
timp->tm_hour = sec / 3600;
diff --git a/readme.txt b/readme.txt index 215858285..2606224d1 100644 --- a/readme.txt +++ b/readme.txt @@ -133,6 +133,8 @@ STM32F098xx devices.
- HAL: Fixed differences in STM32F3 ADC macro definitions (bug #665)
(backported to 3.0.3).
+- HAL: Fixed RTC module loses day of week when converting (bug #664)
+ (backported to 3.0.3).
- HAL: Fixed invalid class type for sdPutWouldBlock() and sdGetWouldBlock()
functions (bug #659)(backported to 3.0.3 and 2.6.10).
- HAL: Fixed STM32F0xx HAL missing MCOPRE support (bug #658).
|