Skip to content

Conversation

ABOSTM
Copy link
Contributor

@ABOSTM ABOSTM commented Jun 13, 2022

fix: in configForLowPower(), begin() should be call unconditionnally

The fact RTC is already configured or not,
is handled by begin() itself.
Fixes stm32duino/STM32LowPower#71

Signed-off-by: Alexandre Bourdiol alexandre.bourdiol@st.com

The fact RTC is already configured or not, is handled by begin() itself. Fixes stm32duino/STM32LowPower#71 Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
* RTC_initClock() must be called after reset of backup domain * NVIC interrupt enable is done within RTC_StartAlarm() to avoid cases where alarm is pending but never cleared by ISR handler * STM32RTC::begin() should get format parameter instead of period * If timer is not already set, configure an arbitrary time for Lowpower usage Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Copy link
Member

@fpistm fpistm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fpistm fpistm linked an issue Jun 16, 2022 that may be closed by this pull request
@fpistm fpistm merged commit 86ab4b7 into stm32duino:main Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

2 participants