v1.17.0 #327
@ -289,6 +289,9 @@ ReturnValue_t PlocSupvUartManager::initiateUpdateContinuation() {
|
|||||||
|
|
||||||
void PlocSupvUartManager::stop() {
|
void PlocSupvUartManager::stop() {
|
||||||
MutexGuard mg(lock);
|
MutexGuard mg(lock);
|
||||||
|
if(state == InternalState::SLEEPING or state == InternalState::GO_TO_SLEEP) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
state = InternalState::GO_TO_SLEEP;
|
state = InternalState::GO_TO_SLEEP;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -297,6 +300,7 @@ void PlocSupvUartManager::start() {
|
|||||||
if (state != InternalState::SLEEPING and state != InternalState::GO_TO_SLEEP) {
|
if (state != InternalState::SLEEPING and state != InternalState::GO_TO_SLEEP) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
state = InternalState::DEFAULT;
|
||||||
semaphore->release();
|
semaphore->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user