From 0b6fa7fe6f13aa7c74ffc8c2f1382271865995e6 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Thu, 25 Oct 2012 09:55:54 -0500 Subject: [PATCH] Sanity Checking: Regardless of DIAG_TASK always populate TaskInfo.Running so we can verify certain modules are running. --- flight/Libraries/taskmonitor.c | 2 -- flight/Modules/System/systemmod.c | 4 ---- 2 files changed, 6 deletions(-) diff --git a/flight/Libraries/taskmonitor.c b/flight/Libraries/taskmonitor.c index fffc6435c..0ea4cbf52 100644 --- a/flight/Libraries/taskmonitor.c +++ b/flight/Libraries/taskmonitor.c @@ -94,7 +94,6 @@ int32_t TaskMonitorRemove(TaskInfoRunningElem task) */ void TaskMonitorUpdateAll(void) { -#if defined(DIAG_TASKS) TaskInfoData data; int n; @@ -145,5 +144,4 @@ void TaskMonitorUpdateAll(void) // Done xSemaphoreGiveRecursive(lock); -#endif } diff --git a/flight/Modules/System/systemmod.c b/flight/Modules/System/systemmod.c index fa3be09e2..470d786f8 100644 --- a/flight/Modules/System/systemmod.c +++ b/flight/Modules/System/systemmod.c @@ -123,9 +123,7 @@ int32_t SystemModInitialize(void) SystemStatsInitialize(); FlightStatusInitialize(); ObjectPersistenceInitialize(); -#if defined(DIAG_TASKS) TaskInfoInitialize(); -#endif #if defined(I2C_WDG_STATS_DIAGNOSTICS) I2CStatsInitialize(); WatchdogStatusInitialize(); @@ -181,10 +179,8 @@ static void systemTask(void *parameters) updateWDGstats(); #endif -#if defined(DIAG_TASKS) // Update the task status object TaskMonitorUpdateAll(); -#endif // Flash the heartbeat LED #if defined(PIOS_LED_HEARTBEAT)