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

View File

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