Commit 1b10c6b
committed
Fix week day issue
RTC_WEEKDAY_SUNDAY definition in STM32F1 HAL is 0 while
7 for other series.
struct tm:
tm_wday
The number of days since Sunday, in the range 0 to 6.
Other days are aligned to the tm_wday value.
Fix #9
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>1 parent 1c0c41a commit 1b10c6b
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
854 | 858 | | |
855 | | - | |
| 859 | + | |
856 | 860 | | |
857 | 861 | | |
858 | 862 | | |
| |||
911 | 915 | | |
912 | 916 | | |
913 | 917 | | |
914 | | - | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
915 | 923 | | |
916 | 924 | | |
917 | 925 | | |
| |||
0 commit comments