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

Add check if the button is held for the whole 5 seconds #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kieranc
Copy link

@kieranc kieranc commented Mar 10, 2021

If the button is held down to reboot the watch and not released after the reboot, the device can enter recovery mode unintentionally. This check aims to ignore the button if it is held for the entirety of the 5 second delay, implying it was held before the device started to boot and should be ignored.

I'm not sure if the count will be exactly 3000 * 64 * 5 in this situation, or if there's a better way to address this, or if the secondary condition is needed for the restore_factory if statement... But I made a PR anyway despite a profound lack of certainty!

kieranc added 2 commits March 10, 2021 15:31
If the button is held down to reboot the watch and not released after the reboot, the device can enter recovery mode unintentionally. This check aims to ignore the button if it is held for the entirety of the 5 second delay, implying it was held before the device started to boot and should be ignored.
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.

1 participant