summaryrefslogtreecommitdiff
path: root/src/systemtask
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2021-07-14 14:11:16 (GMT)
committerRiku Isokoski <riksu9000@gmail.com>2021-07-14 14:11:16 (GMT)
commit5bc40c9287f06d2c2bb24a5691175f1d29a17c1b (patch)
tree78f2be3a64c331426d761d83ab2f65324e9ac995 /src/systemtask
parenta07b6382aef3c30d8ea8f28fcc3cc880d7afd747 (diff)
Update touchpad driver
Diffstat (limited to 'src/systemtask')
-rw-r--r--src/systemtask/SystemTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index eb29638..6a851e7 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -231,7 +231,7 @@ void SystemTask::Work() {
twiMaster.Wakeup();
auto touchInfo = touchPanel.GetTouchInfo();
twiMaster.Sleep();
- if (touchInfo.isTouch and ((touchInfo.gesture == Pinetime::Drivers::Cst816S::Gestures::DoubleTap and
+ if (touchInfo.isValid and ((touchInfo.gesture == Pinetime::Drivers::Cst816S::Gestures::DoubleTap and
settingsController.getWakeUpMode() == Pinetime::Controllers::Settings::WakeUpMode::DoubleTap) or
(touchInfo.gesture == Pinetime::Drivers::Cst816S::Gestures::SingleTap and
settingsController.getWakeUpMode() == Pinetime::Controllers::Settings::WakeUpMode::SingleTap))) {