diff --git a/Libs/rtos2-utils b/Libs/rtos2-utils index 067a48c..0e96b2e 160000 --- a/Libs/rtos2-utils +++ b/Libs/rtos2-utils @@ -1 +1 @@ -Subproject commit 067a48c30953fb5ee2c9f442f9a93a062c16ac1e +Subproject commit 0e96b2ec29fde1e56e12fc9f0dceb80012e0caf3 diff --git a/Tacos/src/manager.cpp b/Tacos/src/manager.cpp index 17755cc..2b511ef 100644 --- a/Tacos/src/manager.cpp +++ b/Tacos/src/manager.cpp @@ -82,6 +82,9 @@ namespace sta { Statemachine::stateChangeEvent.wait(Statemachine::EventFlags::ALL, osWaitForever); + HeapStats_t stats; + vPortGetHeapStats(&stats); + // Start all new tasks and stop all the tasks that aren't supposed to be running. updateThreads(); } diff --git a/Tacos/src/thread.cpp b/Tacos/src/thread.cpp index b42fd99..d6a1226 100644 --- a/Tacos/src/thread.cpp +++ b/Tacos/src/thread.cpp @@ -91,7 +91,7 @@ namespace sta init(); // Run the thread until the termination flag is set. - while (!checkTerminationRequest()) + while (!resetTerminationRequest()) { func(); }