bugfix for start method
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
parent
a55e6a1725
commit
1f6f11ee88
@ -289,6 +289,9 @@ ReturnValue_t PlocSupvUartManager::initiateUpdateContinuation() {
|
||||
|
||||
void PlocSupvUartManager::stop() {
|
||||
MutexGuard mg(lock);
|
||||
if(state == InternalState::SLEEPING or state == InternalState::GO_TO_SLEEP) {
|
||||
return;
|
||||
}
|
||||
state = InternalState::GO_TO_SLEEP;
|
||||
}
|
||||
|
||||
@ -297,6 +300,7 @@ void PlocSupvUartManager::start() {
|
||||
if (state != InternalState::SLEEPING and state != InternalState::GO_TO_SLEEP) {
|
||||
return;
|
||||
}
|
||||
state = InternalState::DEFAULT;
|
||||
semaphore->release();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user