v1.17.0 #327

Merged
muellerr merged 131 commits from develop into main 2022-11-28 18:29:31 +01:00
Showing only changes of commit 1f6f11ee88 - Show all commits

View File

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