mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +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;
|
||||
xSemaphoreTakeRecursive(mutex, portMAX_DELAY); // access to scheduletime should be mutex protected
|
||||
if (current->scheduletime) {
|
||||
diff = next->scheduletime - xTaskGetTickCount();
|
||||
diff = current->scheduletime - xTaskGetTickCount();
|
||||
if (diff<=0) {
|
||||
current->waiting = true;
|
||||
} else if (diff<result) {
|
||||
|
Loading…
Reference in New Issue
Block a user