Simplify ISR task wake checks
The macro checks the variable, so we don't need to check it ourselves
This commit is contained in:
parent
70f6604878
commit
636af4d33d
4 changed files with 5 additions and 17 deletions
|
|
@ -103,10 +103,7 @@ void HeartRateTask::Work() {
|
|||
void HeartRateTask::PushMessage(HeartRateTask::Messages msg) {
|
||||
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
|
||||
xQueueSendFromISR(messageQueue, &msg, &xHigherPriorityTaskWoken);
|
||||
if (xHigherPriorityTaskWoken) {
|
||||
/* Actual macro used here is port specific. */
|
||||
// TODO : should I do something here?
|
||||
}
|
||||
portYIELD_FROM_ISR(xHigherPriorityTaskWoken);
|
||||
}
|
||||
|
||||
void HeartRateTask::StartMeasurement() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue