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

don't wait for USB or BLE workflow after true deep sleep #6051

Merged
merged 1 commit into from
Feb 18, 2022

Conversation

dhalbert
Copy link
Collaborator

Check whether CPy awoke from true deep sleep. If so, don't bother to wait 5 seconds for USB or BLE workflow connected, even if there is already a workflow connection. When asked to sleep again, enter true deep sleep even if USB has been connected in the meantime. A hard reset s needed to get out of a true deep sleep loop.

@dhalbert
Copy link
Collaborator Author

The one build failure is due to a transient CI problem, unrelated to the PR.

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.

Looks good to me! One question that doesn't block the merge.

main.c Show resolved Hide resolved
@dhalbert dhalbert merged commit c9a65af into adafruit:main Feb 18, 2022
@dhalbert dhalbert deleted the deep-sleep-usb-delays branch February 18, 2022 00:43
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.

Only wait for USB enumeration when powered on or reset (not deep sleep)
2 participants