aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/DisplayAppRecovery.cpp
diff options
context:
space:
mode:
authormark9064 <30447455+mark9064@users.noreply.github.com>2024-02-13 00:38:20 +0000
committerJF <JF002@users.noreply.github.com>2024-03-12 19:09:01 +0100
commit636af4d33da215f33ae09b6ae4c5e7195aaa356e (patch)
treed4c3d63e5b6dedeb0a98979c35d5c322ced0f618 /src/displayapp/DisplayAppRecovery.cpp
parent70f6604878e58ce7d052825cf44e960b263309d4 (diff)
Simplify ISR task wake checks
The macro checks the variable, so we don't need to check it ourselves
Diffstat (limited to 'src/displayapp/DisplayAppRecovery.cpp')
-rw-r--r--src/displayapp/DisplayAppRecovery.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/displayapp/DisplayAppRecovery.cpp b/src/displayapp/DisplayAppRecovery.cpp
index c4bd5766..002ee3bd 100644
--- a/src/displayapp/DisplayAppRecovery.cpp
+++ b/src/displayapp/DisplayAppRecovery.cpp
@@ -110,13 +110,9 @@ void DisplayApp::DisplayOtaProgress(uint8_t percent, uint16_t color) {
}
void DisplayApp::PushMessage(Display::Messages msg) {
- BaseType_t xHigherPriorityTaskWoken;
- xHigherPriorityTaskWoken = pdFALSE;
+ BaseType_t xHigherPriorityTaskWoken = pdFALSE;
xQueueSendFromISR(msgQueue, &msg, &xHigherPriorityTaskWoken);
- if (xHigherPriorityTaskWoken) {
- /* Actual macro used here is port specific. */
- // TODO : should I do something here?
- }
+ portYIELD_FROM_ISR(xHigherPriorityTaskWoken);
}
void DisplayApp::Register(Pinetime::System::SystemTask* /*systemTask*/) {