Adapted TACOS to checkTerminationRequest renaming in rtos2-utils

This commit is contained in:
dario
2023-10-28 20:24:19 +02:00
parent 5e23008b78
commit 9f4c772437
3 changed files with 5 additions and 2 deletions

View File

@@ -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();
}

View File

@@ -91,7 +91,7 @@ namespace sta
init();
// Run the thread until the termination flag is set.
while (!checkTerminationRequest())
while (!resetTerminationRequest())
{
func();
}