mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-06 09:37:34 +00:00
feat: user definable callback on state transition
This commit is contained in:
@@ -71,6 +71,9 @@ namespace sta
|
||||
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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user