mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
typo fix in callback scheduler
This commit is contained in:
parent
6f1bb94718
commit
17e8268e81
@ -342,7 +342,7 @@ static int32_t runNextCallback(struct DelayedCallbackTaskStruct *task, DelayedCa
|
|||||||
next = current->next;
|
next = current->next;
|
||||||
xSemaphoreTakeRecursive(mutex, portMAX_DELAY); // access to scheduletime should be mutex protected
|
xSemaphoreTakeRecursive(mutex, portMAX_DELAY); // access to scheduletime should be mutex protected
|
||||||
if (current->scheduletime) {
|
if (current->scheduletime) {
|
||||||
diff = next->scheduletime - xTaskGetTickCount();
|
diff = current->scheduletime - xTaskGetTickCount();
|
||||||
if (diff<=0) {
|
if (diff<=0) {
|
||||||
current->waiting = true;
|
current->waiting = true;
|
||||||
} else if (diff<result) {
|
} else if (diff<result) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user