File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -240,12 +240,14 @@ void SystemTask::Work() {
240240 isDimmed = false ;
241241 break ;
242242 case Messages::TouchWakeUp: {
243- auto touchInfo = touchPanel.GetTouchInfo ();
244- if (touchInfo.touching and ((touchInfo.gesture == Pinetime::Drivers::Cst816S::Gestures::DoubleTap and
245- settingsController.isWakeUpModeOn (Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) or
246- (touchInfo.gesture == Pinetime::Drivers::Cst816S::Gestures::SingleTap and
247- settingsController.isWakeUpModeOn (Pinetime::Controllers::Settings::WakeUpMode::SingleTap)))) {
248- GoToRunning ();
243+ if (touchHandler.GetNewTouchInfo ()) {
244+ auto gesture = touchHandler.GestureGet ();
245+ if (gesture != Pinetime::Drivers::Cst816S::Gestures::None and ((gesture == Pinetime::Drivers::Cst816S::Gestures::DoubleTap and
246+ settingsController.isWakeUpModeOn (Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) or
247+ (gesture == Pinetime::Drivers::Cst816S::Gestures::SingleTap and
248+ settingsController.isWakeUpModeOn (Pinetime::Controllers::Settings::WakeUpMode::SingleTap)))) {
249+ GoToRunning ();
250+ }
249251 }
250252 } break ;
251253 case Messages::GoToSleep:
You can’t perform that action at this time.
0 commit comments