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 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; }