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 recording of wake_alarm #5762

Merged
merged 1 commit into from
Dec 22, 2021
Merged

Conversation

dhalbert
Copy link
Collaborator

alarm.wake_alarm was not being set properly after a real or fake deep sleep. I moved the responsibility for keeping track of whether the board had just hard-restarted to main.c, instead of having it in common-hal. The most recent wake alarm is now recorded in alarm.wake_alarm either after a hard-reset, or after a simulated (fake) deep sleep.

Light sleep was not setting alarm.wake_alarm. I did this in a port-independent way.

Also did a minor doc fix in alarm.

It looks like circuitpython.pot got out of sync with the code base at some previous point. It was using the older lowercase filename is31fl3741.c instead of IS31FL3741.c. Hence the merge to circuitpython.pot

@dhalbert dhalbert requested review from tannewt and jepler December 22, 2021 03:06
@dhalbert dhalbert linked an issue Dec 22, 2021 that may be closed by this pull request
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

@tannewt tannewt merged commit 9d5ae2e into adafruit:7.1.x Dec 22, 2021
@dhalbert dhalbert deleted the stale-wakeup-reasons branch February 6, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alarm.wake_alarm not set upon wake from deep sleep
2 participants