mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
uncrustification
This commit is contained in:
parent
360e58abde
commit
b19a74613a
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user