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

raspberrypi: RTC: Ensure a time is set #4379

Merged
merged 1 commit into from
Mar 11, 2021
Merged

Commits on Mar 11, 2021

  1. raspberrypi: RTC: Ensure a time is set

    Until a time is set, the RTC is not running, and rtc_get_datetime()
    returns false without assigning to the out-parameter.
    
    In CircuitPython, this would manifest as arbitrary values being returned,
    since uninitialized storage on the stack was being converted into a timestamp.
    jepler committed Mar 11, 2021
    Configuration menu
    Copy the full SHA
    16bfe3b View commit details
    Browse the repository at this point in the history