From c248cdb876c7916619864de366accec534be4776 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 17 Nov 2022 17:46:06 +0100 Subject: [PATCH] fix for error handling longer request --- linux/devices/ploc/PlocSupvUartMan.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/linux/devices/ploc/PlocSupvUartMan.cpp b/linux/devices/ploc/PlocSupvUartMan.cpp index da9d4b3d..ab4aea5e 100644 --- a/linux/devices/ploc/PlocSupvUartMan.cpp +++ b/linux/devices/ploc/PlocSupvUartMan.cpp @@ -117,10 +117,9 @@ ReturnValue_t PlocSupvUartManager::performOperation(uint8_t operationCode) { break; } case InternalState::DEDICATED_REQUEST: { - if (handleRunningLongerRequest() == REQUEST_DONE) { - MutexGuard mg(lock); - state = InternalState::DEFAULT; - } + handleRunningLongerRequest(); + MutexGuard mg(lock); + state = InternalState::DEFAULT; break; } case InternalState::DEFAULT: {