diff options
author | JF <jf@codingfield.com> | 2020-06-13 17:33:49 +0200 |
---|---|---|
committer | JF <jf@codingfield.com> | 2020-06-13 17:33:49 +0200 |
commit | fab220d0b9c6868b4fa96ce5f3e3f41b5454a0c7 (patch) | |
tree | 0f75b3464f96cc01d379d45fa6f4c7b891651b46 /src | |
parent | 47851fb3b476268d967738f09f9da812e0fc575f (diff) |
Fix idle timer bug that would prevent the screen from waking up.
Diffstat (limited to 'src')
-rw-r--r-- | src/SystemTask/SystemTask.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SystemTask/SystemTask.cpp b/src/SystemTask/SystemTask.cpp index b0f58d17..61b3c638 100644 --- a/src/SystemTask/SystemTask.cpp +++ b/src/SystemTask/SystemTask.cpp @@ -16,6 +16,8 @@ using namespace Pinetime::System; void IdleTimerCallback(TimerHandle_t xTimer) { + + NRF_LOG_INFO("IdleTimerCallback"); auto sysTask = static_cast<SystemTask *>(pvTimerGetTimerID(xTimer)); sysTask->OnIdle(); } @@ -113,6 +115,7 @@ void SystemTask::Work() { break; case Messages::GoToSleep: NRF_LOG_INFO("[SystemTask] Going to sleep"); + xTimerStop(idleTimer, 0); displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::GoToSleep); isSleeping = true; break; |