mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-16 08:29:15 +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
e82921c70c
commit
25998f668a
@ -244,7 +244,9 @@ static void systemTask(__attribute__((unused)) void *parameters)
|
|||||||
|
|
||||||
#ifdef DIAG_TASKS
|
#ifdef DIAG_TASKS
|
||||||
TaskInfoData taskInfoData;
|
TaskInfoData taskInfoData;
|
||||||
|
memset(&taskInfoData, 0, sizeof(TaskInfoData));
|
||||||
CallbackInfoData callbackInfoData;
|
CallbackInfoData callbackInfoData;
|
||||||
|
memset(&callbackInfoData, 0, sizeof(CallbackInfoData));
|
||||||
#endif
|
#endif
|
||||||
// Main system loop
|
// Main system loop
|
||||||
while (1) {
|
while (1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user