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

did a tiny bit of code cleanup, encountered a bug that might fix some sleep-mode issues #339

Merged
merged 5 commits into from
Jan 21, 2024

Conversation

theAlexes
Copy link
Collaborator

while renaming the current_watch_face and next_watch_face to be clear that they are indexes into the watch_face array, we updated the app loop to use a pointer to the current face. This made us realize that the face loop can be visited twice in one turn, and thus cause conflict in can_sleep. This is resolved by boolean-ANDing the previous result in.

@WesleyAC
Copy link
Collaborator

Looks good to me. Slightly dubious about the last commit in the stack but that seems like personal preference as much as anything, so I'm fine with merging it as-is.

@WesleyAC WesleyAC merged commit e49a75b into joeycastillo:main Jan 21, 2024
2 checks passed
@maxz maxz mentioned this pull request Jan 21, 2024
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.

2 participants