mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
Sanity Checking: Regardless of DIAG_TASK always populate TaskInfo.Running
so we can verify certain modules are running.
This commit is contained in:
parent
b84b8f656c
commit
0b6fa7fe6f
@ -94,7 +94,6 @@ int32_t TaskMonitorRemove(TaskInfoRunningElem task)
|
|||||||
*/
|
*/
|
||||||
void TaskMonitorUpdateAll(void)
|
void TaskMonitorUpdateAll(void)
|
||||||
{
|
{
|
||||||
#if defined(DIAG_TASKS)
|
|
||||||
TaskInfoData data;
|
TaskInfoData data;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
@ -145,5 +144,4 @@ void TaskMonitorUpdateAll(void)
|
|||||||
|
|
||||||
// Done
|
// Done
|
||||||
xSemaphoreGiveRecursive(lock);
|
xSemaphoreGiveRecursive(lock);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
@ -123,9 +123,7 @@ int32_t SystemModInitialize(void)
|
|||||||
SystemStatsInitialize();
|
SystemStatsInitialize();
|
||||||
FlightStatusInitialize();
|
FlightStatusInitialize();
|
||||||
ObjectPersistenceInitialize();
|
ObjectPersistenceInitialize();
|
||||||
#if defined(DIAG_TASKS)
|
|
||||||
TaskInfoInitialize();
|
TaskInfoInitialize();
|
||||||
#endif
|
|
||||||
#if defined(I2C_WDG_STATS_DIAGNOSTICS)
|
#if defined(I2C_WDG_STATS_DIAGNOSTICS)
|
||||||
I2CStatsInitialize();
|
I2CStatsInitialize();
|
||||||
WatchdogStatusInitialize();
|
WatchdogStatusInitialize();
|
||||||
@ -181,10 +179,8 @@ static void systemTask(void *parameters)
|
|||||||
updateWDGstats();
|
updateWDGstats();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(DIAG_TASKS)
|
|
||||||
// Update the task status object
|
// Update the task status object
|
||||||
TaskMonitorUpdateAll();
|
TaskMonitorUpdateAll();
|
||||||
#endif
|
|
||||||
|
|
||||||
// Flash the heartbeat LED
|
// Flash the heartbeat LED
|
||||||
#if defined(PIOS_LED_HEARTBEAT)
|
#if defined(PIOS_LED_HEARTBEAT)
|
||||||
|
Loading…
Reference in New Issue
Block a user