Skip to content

Commit

Permalink
Remove OnTouchEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9064 authored and JF002 committed Oct 27, 2024
1 parent 0076962 commit 57b6db8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 0 additions & 4 deletions src/systemtask/SystemTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/systemtask/SystemTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ namespace Pinetime {
void Start();
void PushMessage(Messages msg);

void OnTouchEvent();

bool IsSleepDisabled() {
return wakeLocksHeld > 0;
}
Expand Down

0 comments on commit 57b6db8

Please sign in to comment.