Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This enables the LIGHT button to wake the watch, if the watch has been physically modified to connect the LIGHT button to the A4 input. The watch cannot physically wake from the LIGHT input without this modification. However the A4 input does support external wake.
So, this patch adds an additional "external wake" callback on the A4 button.
The feature is configurable in movement_config.h by defining MOVEMENT_SLEEP_LIGHT_A4
The use-case is "checking the watch in the middle of the night". In order to preserve watch battery, the watch only wakes for 5 seconds. In order to accomplish this, there's some logic to disregard the LIGHT button for a few seconds after this special wake - otherwise, the "normal" LIGHT button action is triggered in addition to the A4 wake, which resets the low-energy countdown, which we don't want.
Room for improvement: