feat(state-via-can): state transitions via can are forced to resync state across devices

This commit is contained in:
CarlWachter
2024-06-17 08:54:36 +02:00
committed by carlwachter
parent 69b5091c76
commit d028ecef74
5 changed files with 31 additions and 10 deletions

View File

@@ -162,8 +162,9 @@ namespace sta
* @param from The state which we want to leave. This is used to filter out obsolete transitions.
* @param to The state to transition to.
* @param lockout The minimum number of milliseconds we expect to stay in this state. This is used to block premature transitions.
* @param force If true, the state transition will be executed regardless of the current state.
*/
void requestStateTransition(uint32_t from, uint32_t to, uint32_t lockout = 0);
void requestStateTransition(uint32_t from, uint32_t to, uint32_t lockout = 0, bool force = false);
/**
* @brief Request a state transition after a given time has passed.