From a55e6a17254d41deaf294caad2358d530c893572 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 15 Nov 2022 17:48:44 +0100 Subject: [PATCH] logic fix --- linux/devices/ploc/PlocSupvUartMan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/devices/ploc/PlocSupvUartMan.cpp b/linux/devices/ploc/PlocSupvUartMan.cpp index cdf74027..047bef59 100644 --- a/linux/devices/ploc/PlocSupvUartMan.cpp +++ b/linux/devices/ploc/PlocSupvUartMan.cpp @@ -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();