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:
parent
fff060ed9d
commit
adde6b2f34
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user