joeycastillo / Sensor-Watch

A board replacement for the classic Casio F-91W wristwatch
Other
1.3k stars 250 forks source link

Debounce #497

Open voloved opened 1 day ago

voloved commented 1 day ago

https://github.com/joeycastillo/Sensor-Watch/pull/437, was the original PR of this. However, it had a bug that would cause the watch to get softbricked.

This PR stops the microcontroller from being able to enter sleep mode while debouncing, which seemed like the culprit of the softbrick.

Another user and I got the softbrick issue with the first PR within 4 weeks of using it. This change has been been used by that other user and myself for over 2 months without issue.