Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(F1): properly update date #89

Merged
merged 1 commit into from
Jan 25, 2023
Merged

fix(F1): properly update date #89

merged 1 commit into from
Jan 25, 2023

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Jan 24, 2023

Fixes #87

When RTC init after power off (only VBAT available), after restore date from backup register in the RTC hadnle, HAL_RTC_GetDate is called to update date automatically based on counter time value else if one or more day elapsed it is not take in account.

Fixes stm32duino#87

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm added the bug label Jan 24, 2023
@fpistm fpistm added this to the 1.3.6 milestone Jan 24, 2023
@fpistm fpistm requested a review from ABOSTM January 24, 2023 09:58
Copy link
Contributor

@ABOSTM ABOSTM 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 merged commit fdebabc into stm32duino:main Jan 25, 2023
@fpistm fpistm deleted the F1_Date branch January 25, 2023 15:27
@fpistm fpistm added bug 🐛 Something isn't working fix 🩹 Bug fix and removed bug bug 🐛 Something isn't working labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 🩹 Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STM32F1: RTC does not advance date when running from VBAT for long periods of time
2 participants