1
0
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:
Corvus Corax 2013-04-18 18:35:57 +02:00
parent 6f1bb94718
commit 17e8268e81

View File

@ -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) {