stm32duino / STM32RTC

Arduino RTC library for STM32.
127 stars 48 forks source link

Fix week day issue #10

Closed fpistm closed 6 years ago

fpistm commented 6 years ago

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 thetm_wday value.

Fix #9

Signed-off-by: Frederic.Pillon frederic.pillon@st.com