diff options
author | Avamander <avamander@gmail.com> | 2020-10-04 15:08:48 +0300 |
---|---|---|
committer | Avamander <avamander@gmail.com> | 2020-10-09 11:36:16 +0300 |
commit | f68c7b65b31f0bb7ff729740a29d5796b2c04f01 (patch) | |
tree | 89d957f4bdf5d6ad8a0f888f3ca2b25de907ab4c /src/systemtask | |
parent | bb72712d376685143b57d321c6f967cbbca4c28e (diff) |
Minor formatting, diagnostic and documentation changes
Diffstat (limited to 'src/systemtask')
-rw-r--r-- | src/systemtask/SystemTask.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index c0552d53..01942daf 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -100,6 +100,9 @@ void SystemTask::Work() { idleTimer = xTimerCreate ("idleTimer", idleTime, pdFALSE, this, IdleTimerCallback); xTimerStart(idleTimer, 0); + // Suppress endless loop diagnostic + #pragma clang diagnostic push + #pragma ide diagnostic ignored "EndlessLoop" while(true) { uint8_t msg; if (xQueueReceive(systemTasksMsgQueue, &msg, isSleeping ? 2500 : 1000)) { @@ -231,7 +234,7 @@ void SystemTask::PushMessage(SystemTask::Messages msg) { xQueueSendFromISR(systemTasksMsgQueue, &msg, &xHigherPriorityTaskWoken); if (xHigherPriorityTaskWoken) { /* Actual macro used here is port specific. */ - // TODO : should I do something here? + // TODO: should I do something here? } } |