aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormark9064 <30447455+mark9064@users.noreply.github.com>2024-10-18 00:05:30 +0100
committerJF <JF002@users.noreply.github.com>2024-10-27 19:51:01 +0100
commit57b6db8b2a24e7303b79ea5439df655317af0196 (patch)
tree711ffa3072f4cff73cd32fccff21669bf85606d9 /src
parent00769625881e318e6fe29e926c7bd944c5f049bd (diff)
Remove OnTouchEvent
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
-rw-r--r--src/systemtask/SystemTask.cpp4
-rw-r--r--src/systemtask/SystemTask.h2
3 files changed, 1 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 84f30eef..24f13cad 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -168,7 +168,7 @@ std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> NoI
void nrfx_gpiote_evt_handler(nrfx_gpiote_pin_t pin, nrf_gpiote_polarity_t action) {
if (pin == Pinetime::PinMap::Cst816sIrq) {
- systemTask.OnTouchEvent();
+ systemTask.PushMessage(Pinetime::System::Messages::OnTouchEvent);
return;
}
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index ed0fd744..eb013d6d 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -493,10 +493,6 @@ void SystemTask::HandleButtonAction(Controllers::ButtonActions action) {
fastWakeUpDone = false;
}
-void SystemTask::OnTouchEvent() {
- PushMessage(Messages::OnTouchEvent);
-}
-
void SystemTask::PushMessage(System::Messages msg) {
if (in_isr()) {
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h
index 752c5611..0060e360 100644
--- a/src/systemtask/SystemTask.h
+++ b/src/systemtask/SystemTask.h
@@ -77,8 +77,6 @@ namespace Pinetime {
void Start();
void PushMessage(Messages msg);
- void OnTouchEvent();
-
bool IsSleepDisabled() {
return wakeLocksHeld > 0;
}