Minor formatting, diagnostic and documentation changes

This commit is contained in:
Avamander
2020-10-04 15:08:48 +03:00
parent bb72712d37
commit f68c7b65b3
5 changed files with 31 additions and 11 deletions

View File

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