stm32duino / STM32RTC

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

RTC_LSE_CLOCK is not a member of 'STM32RTC' #18

Closed tuxnull closed 5 years ago

tuxnull commented 5 years ago

When trying to use the external quartz on my Blue Pill STM32F103C8T6 by running: rtc.setClockSource(STM32RTC::RTC_LSE_CLOCK); the compiler returns LEDMatrixClock:46:32: error: 'RTC_LSE_CLOCK' is not a member of 'STM32RTC' rtc.setClockSource(STM32RTC::RTC_LSE_CLOCK); ^~~~~~~~~~~~~

tuxnull commented 5 years ago

Fixed by renaming RTC_LSE_CLOCK to LSE_CLOCK. Issue still relevant though, still this has to be changed in the examples.

fpistm commented 5 years ago

Hi @tuxnull, Right enum has been changed but in which example you get old name?

tuxnull commented 5 years ago

I found it in the RTCClockSelection example:

https://github.com/stm32duino/STM32RTC/blob/96464ec25de2a6e4a08180f9ab7c40d590bf724c/examples/RTCClockSelection /RTCClockSelection.ino#L63 But i see it has been changed already. Issue closed.