fix(statemachine): perform manager roles and call callback when transition is forced

This commit is contained in:
CarlWachter 2024-11-03 14:57:27 +01:00
parent ca3f303293
commit 80ae4502b6

View File

@ -130,6 +130,16 @@ namespace sta
{ {
setLockoutTimer(lockout); setLockoutTimer(lockout);
} }
// get heap stats at the end of the state transition
HeapStats_t stats;
vPortGetHeapStats(&stats);
// Execute the user-defined callback.
sta::tacos::onStateTransition(transition.from, transition.to, transition.lockout);
// Start all new tasks and stop all the tasks that aren't supposed to be running.
updateThreads();
} }
} }