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