mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-10 00:25:59 +00:00
Merge pull request 'fix: force transition no longer restarts same state' (#36) from fix/force_transition into main
Reviewed-on: https://git.intern.spaceteamaachen.de/ALPAKA/TACOS/pulls/36
This commit is contained in:
commit
5b532087c8
@ -72,7 +72,8 @@ namespace sta
|
||||
transition.event = EventFlags::NORMAL;
|
||||
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
|
||||
// here in order to allow threads to react immediately.
|
||||
currentState_ = transition.to;
|
||||
|
Loading…
x
Reference in New Issue
Block a user