SystemTask: Use "&&" instead of "and" for operators

As per the coding style, only primary spelling should be used for operators.
This commit is contained in:
Christoph Honal 2022-05-10 21:10:10 +02:00 committed by Riku Isokoski
parent 702f65d3ee
commit 03a2059e87

View File

@ -264,15 +264,16 @@ void SystemTask::Work() {
case Messages::TouchWakeUp: {
if (touchHandler.GetNewTouchInfo()) {
auto gesture = touchHandler.GestureGet();
if (gesture != Pinetime::Applications::TouchEvents::None and
((gesture == Pinetime::Applications::TouchEvents::DoubleTap and
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) or
(gesture == Pinetime::Applications::TouchEvents::Tap and
if (gesture != Pinetime::Applications::TouchEvents::None &&
((gesture == Pinetime::Applications::TouchEvents::DoubleTap &&
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) ||
(gesture == Pinetime::Applications::TouchEvents::Tap &&
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::SingleTap)))) {
GoToRunning();
}
}
} break;
break;
}
case Messages::GoToSleep:
if (doNotGoToSleep) {
break;