1
0
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:
Philippe Renon 2017-01-15 22:34:39 +01:00
parent a0a2f30788
commit de837a02e8

View File

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