Compare commits

..

5 commits

Author SHA1 Message Date
mark9064 1754c8089f
Merge 5b925375e7 into 8598142c27 2024-10-17 23:08:16 +00:00
mark9064 5b925375e7 Remove OnTouchEvent 2024-10-18 00:06:26 +01:00
mark9064 df63e5ceb2 Unify touch panel handling 2024-10-18 00:06:01 +01:00
mark9064 6384e6f2a0 Process touch events only when awake 2024-10-18 00:06:01 +01:00
mark9064 ebe20c2117 Clear ongoing taps when going to sleep 2024-10-18 00:06:01 +01:00
3 changed files with 1 additions and 7 deletions

View file

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

View file

@ -480,10 +480,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;

View file

@ -77,8 +77,6 @@ namespace Pinetime {
void Start();
void PushMessage(Messages msg);
void OnTouchEvent();
bool IsSleepDisabled() {
return wakeLocksHeld > 0;
}