mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-09-29 02:57:33 +00:00
Performed successful lockout test
This commit is contained in:
@@ -24,24 +24,10 @@ namespace demo
|
||||
|
||||
void Toggle::func()
|
||||
{
|
||||
osDelay(5000);
|
||||
|
||||
// Have we been requested to terminate while waiting?
|
||||
if (isTerminationRequested())
|
||||
return;
|
||||
|
||||
// Do some important stuff...
|
||||
|
||||
uint16_t state = sta::tacos::Statemachine::instance()->getCurrentState();
|
||||
uint16_t next;
|
||||
uint16_t next = 1 - state;
|
||||
|
||||
if (state != 2)
|
||||
{
|
||||
next = 1 - state;
|
||||
|
||||
STA_DEBUG_PRINTLN("Toggle!");
|
||||
sta::tacos::Statemachine::instance()->requestStateTransition(state, next, 0);
|
||||
}
|
||||
sta::tacos::Statemachine::instance()->requestStateTransition(state, next, 5000);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user