diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2024-02-13 00:38:20 +0000 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2024-03-12 19:09:01 +0100 |
| commit | 636af4d33da215f33ae09b6ae4c5e7195aaa356e (patch) | |
| tree | d4c3d63e5b6dedeb0a98979c35d5c322ced0f618 /src/systemtask | |
| parent | 70f6604878e58ce7d052825cf44e960b263309d4 (diff) | |
Simplify ISR task wake checks
The macro checks the variable, so we don't need to check it ourselves
Diffstat (limited to 'src/systemtask')
| -rw-r--r-- | src/systemtask/SystemTask.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 5a885f17..e3d40d35 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -512,10 +512,7 @@ void SystemTask::PushMessage(System::Messages msg) { if (in_isr()) { BaseType_t xHigherPriorityTaskWoken = pdFALSE; xQueueSendFromISR(systemTasksMsgQueue, &msg, &xHigherPriorityTaskWoken); - if (xHigherPriorityTaskWoken == pdTRUE) { - /* Actual macro used here is port specific. */ - portYIELD_FROM_ISR(xHigherPriorityTaskWoken); - } + portYIELD_FROM_ISR(xHigherPriorityTaskWoken); } else { xQueueSend(systemTasksMsgQueue, &msg, portMAX_DELAY); } |
