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 /os/hal/src/rtc.c | |
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
Diffstat (limited to 'os/hal/src/rtc.c')
-rw-r--r-- | os/hal/src/rtc.c | 1 |
1 files changed, 1 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;
|