logic fix

This commit is contained in:
Robin Müller 2022-11-15 17:48:44 +01:00
parent 3059e196a3
commit a55e6a1725
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -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();