1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

uncrustification

This commit is contained in:
Corvus Corax 2013-06-28 19:20:39 +02:00
parent 360e58abde
commit b19a74613a
2 changed files with 6 additions and 5 deletions

View File

@ -95,7 +95,7 @@ void PIOS_Board_Init(void)
if (PIOS_TASK_MONITOR_Initialize(TASKINFO_RUNNING_NUMELEM)) {
PIOS_Assert(0);
}
/* Initialize the delayed callback library */
CallbackSchedulerInitialize();

View File

@ -288,15 +288,16 @@ static void eventTask()
// Wait for queue message
int limit = MAX_QUEUE_SIZE;
while (xQueueReceive(mQueue, &evInfo, 0) == pdTRUE) {
// Invoke callback, if any
if (evInfo.cb != 0) {
evInfo.cb(&evInfo.ev); // the function is expected to copy the event information
}
// limit loop to max queue size to slightly reduce the impact of recursive events
if (!--limit) {
break;
}
// limit loop to max queue size to slightly reduce the impact of recursive events
if (!--limit) {
break;
}
}
// Process periodic updates