We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 351c60a commit 887c409Copy full SHA for 887c409
1 file changed
src/systemtask/SystemTask.cpp
@@ -337,15 +337,14 @@ void SystemTask::Work() {
337
break;
338
case Messages::HandleButtonEvent: {
339
// This is for faster wakeup, sacrificing special longpress and doubleclick handling while sleeping
340
- if (IsSleeping()) {
341
- GoToRunning();
342
- break;
343
- }
344
-
345
Controllers::ButtonActions action;
346
if (nrf_gpio_pin_read(Pinetime::PinMap::Button) == 0) {
347
action = buttonHandler.HandleEvent(Controllers::ButtonHandler::Events::Release);
348
} else {
+ if (IsSleeping()) {
+ GoToRunning();
+ break;
+ }
349
action = buttonHandler.HandleEvent(Controllers::ButtonHandler::Events::Press);
350
}
351
HandleButtonAction(action);
0 commit comments