mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
LP-402 systemmod: properly init task and callback info variables
avoids random data for unused optional callbacks
This commit is contained in:
parent
a0a2f30788
commit
de837a02e8
@ -244,7 +244,9 @@ static void systemTask(__attribute__((unused)) void *parameters)
|
||||
|
||||
#ifdef DIAG_TASKS
|
||||
TaskInfoData taskInfoData;
|
||||
memset(&taskInfoData, 0, sizeof(TaskInfoData));
|
||||
CallbackInfoData callbackInfoData;
|
||||
memset(&callbackInfoData, 0, sizeof(CallbackInfoData));
|
||||
#endif
|
||||
// Main system loop
|
||||
while (1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user