logic fix
This commit is contained in:
parent
3059e196a3
commit
a55e6a1725
@ -294,7 +294,7 @@ void PlocSupvUartManager::stop() {
|
|||||||
|
|
||||||
void PlocSupvUartManager::start() {
|
void PlocSupvUartManager::start() {
|
||||||
MutexGuard mg(lock);
|
MutexGuard mg(lock);
|
||||||
if (state == InternalState::SLEEPING or state == InternalState::GO_TO_SLEEP) {
|
if (state != InternalState::SLEEPING and state != InternalState::GO_TO_SLEEP) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
semaphore->release();
|
semaphore->release();
|
||||||
|
Loading…
Reference in New Issue
Block a user