mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-10 16:45:59 +00:00
fix: force transition no longer restarts same state
This commit is contained in:
parent
34c036b600
commit
0a155905ee
@ -72,7 +72,8 @@ namespace sta
|
|||||||
transition.event = EventFlags::NORMAL;
|
transition.event = EventFlags::NORMAL;
|
||||||
transition.lockout = lockout;
|
transition.lockout = lockout;
|
||||||
|
|
||||||
if (force){
|
// Force the transition if requested, but only if the requested state is different from the current one.
|
||||||
|
if (force && transition.to != currentState_){
|
||||||
// Perform the transition and notify the threads. The event flags are set
|
// Perform the transition and notify the threads. The event flags are set
|
||||||
// here in order to allow threads to react immediately.
|
// here in order to allow threads to react immediately.
|
||||||
currentState_ = transition.to;
|
currentState_ = transition.to;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user