summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2021-07-16 01:49:20 +0300
committerRiku Isokoski <riksu9000@gmail.com>2021-07-16 01:49:20 +0300
commit93ccbf38e81b30165e49e897c01cac2eb54cc331 (patch)
treed8e1098b5dfebeb170388ccfa70b611a0900542b /src/main.cpp
parent2a3e1263906d1145d6b539ff019362f0077d8097 (diff)
Fix touch wakeup and code cleanup
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f427db40..b8d4b023 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -161,10 +161,12 @@ Pinetime::System::SystemTask systemTask(spi,
heartRateController,
displayApp,
heartRateApp,
- fs);
+ fs,
+ touchHandler);
void nrfx_gpiote_evt_handler(nrfx_gpiote_pin_t pin, nrf_gpiote_polarity_t action) {
if (pin == pinTouchIrq) {
+ twiMaster.Wakeup();
touchHandler.WakeUp();
return;
}