diff --git a/src/main.cpp b/src/main.cpp index 84f30eeffc..24f13caddd 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 ed0fd7446c..eb013d6d1a 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 752c5611dc..0060e36096 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; }