1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

Revert "Sanity Checking: Regardless of DIAG_TASK always populate TaskInfo.Running"

This reverts commit 0b6fa7fe6f.
This commit is contained in:
James Cotton 2012-10-27 13:43:59 -05:00
parent 11630b7f7e
commit 8864b545ae
2 changed files with 6 additions and 0 deletions

View File

@ -104,6 +104,7 @@ bool TaskMonitorQueryRunning(TaskInfoRunningElem task)
*/
void TaskMonitorUpdateAll(void)
{
#if defined(DIAG_TASKS)
TaskInfoData data;
int n;
@ -154,4 +155,5 @@ void TaskMonitorUpdateAll(void)
// Done
xSemaphoreGiveRecursive(lock);
#endif
}

View File

@ -126,7 +126,9 @@ int32_t SystemModInitialize(void)
SystemStatsInitialize();
FlightStatusInitialize();
ObjectPersistenceInitialize();
#if defined(DIAG_TASKS)
TaskInfoInitialize();
#endif
#if defined(I2C_WDG_STATS_DIAGNOSTICS)
I2CStatsInitialize();
WatchdogStatusInitialize();
@ -190,8 +192,10 @@ 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)