1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

OP-1153 Fix for simposix

This commit is contained in:
Alessio Morale 2014-01-05 23:32:20 +01:00
parent fff060ed9d
commit adde6b2f34

View File

@ -524,15 +524,16 @@ static void updateStats()
stats.FlightTime = xTaskGetTickCount() * portTICK_RATE_MS;
#if defined(ARCH_POSIX) || defined(ARCH_WIN32)
// POSIX port of FreeRTOS doesn't have xPortGetFreeHeapSize()
stats.SystemModStackRemaining = 128;
stats.HeapRemaining = 10240;
#else
stats.HeapRemaining = xPortGetFreeHeapSize();
stats.SystemModStackRemaining = uxTaskGetStackHighWaterMark( NULL ) * 4;
#endif
// Get Irq stack status
stats.IRQStackRemaining = GetFreeIrqStackSize();
stats.SystemModStackRemaining = uxTaskGetStackHighWaterMark( NULL ) * 4;
// When idleCounterClear was not reset by the idle-task, it means the idle-task did not run
if (idleCounterClear) {
idleCounter = 0;