summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/StopWatch.h
diff options
context:
space:
mode:
authorKozova1 <30871100+Kozova1@users.noreply.github.com>2021-07-14 21:51:51 +0300
committerGitHub <noreply@github.com>2021-07-14 20:51:51 +0200
commit57b339707861c5688f5d432f1506a99df6bb0fce (patch)
tree9c150bcef37892b43dac8e7ad820e51eed615f71 /src/displayapp/screens/StopWatch.h
parent7133287b76dae9d97a88bed5c5ca1976e507826d (diff)
Multiple wakeup sources (#290)
* Allow multiple wakeup modes at the same time. This commit adds multiple wakeup modes support. It does so by storing them as a uint8_t bitfield enum. It changes the following functions: Since multiple modes can be on now, older version would not cut it: WakeUpMode getWakeupMode() -> std::bitset<3> getWakeUpModes() Where each bit corresponds to a WakeUpMode We still need a way to check whether a specific wakeup mode is on, so: bool isWakeUpModeOn(const WakeUpMode mode) This function was changed to work correctly with the new implementation. setWakeUpMode(WakeupMode mode, bool enable) Previously, systemtask would exit SystemTask::OnTouchEvent() if the wake up mode was None or RaiseWrist, to prevent waking up when a touch was received. However, after enabling using multiple WakeUpModes, this caused a bug where when RaiseWrist was checked with SingleTap or DoubleTap, the tap detection wouldn't work. This commit fixes that bug. Next commit will update the settings WakeUpMode select UI to reflect these changes. Signed-off-by: Kozova1 <mug66kk@gmail.com> * Updated UI to reflect multiple WakeUp sources being available. Signed-off-by: Kozova1 <mug66kk@gmail.com>
Diffstat (limited to 'src/displayapp/screens/StopWatch.h')
0 files changed, 0 insertions, 0 deletions