From 5f6a8fa37d1a774be75987b5e840c1b1da03fd52 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Mon, 2 May 2022 13:50:44 +0200 Subject: [PATCH 1/2] bugfix pcdu handler command queue reading --- mission/devices/PCDUHandler.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mission/devices/PCDUHandler.cpp b/mission/devices/PCDUHandler.cpp index 10d12cf8..260c99c2 100644 --- a/mission/devices/PCDUHandler.cpp +++ b/mission/devices/PCDUHandler.cpp @@ -100,14 +100,10 @@ void PCDUHandler::readCommandQueue() { for (result = commandQueue->receiveMessage(&command); result == RETURN_OK; result = commandQueue->receiveMessage(&command)) { - result = commandQueue->receiveMessage(&command); - if (result != RETURN_OK) { - return; - } - result = poolManager.handleHousekeepingMessage(&command); + sif::debug << "PCDUHandler: Received message" << std::endl; if (result == RETURN_OK) { - return; + continue; } } } From 2f90c3e9374f075defa2a37737ff1b25d2f1b5a3 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Mon, 2 May 2022 13:51:56 +0200 Subject: [PATCH 2/2] removed debug print --- mission/devices/PCDUHandler.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/mission/devices/PCDUHandler.cpp b/mission/devices/PCDUHandler.cpp index 260c99c2..8e9f1918 100644 --- a/mission/devices/PCDUHandler.cpp +++ b/mission/devices/PCDUHandler.cpp @@ -101,7 +101,6 @@ void PCDUHandler::readCommandQueue() { for (result = commandQueue->receiveMessage(&command); result == RETURN_OK; result = commandQueue->receiveMessage(&command)) { result = poolManager.handleHousekeepingMessage(&command); - sif::debug << "PCDUHandler: Received message" << std::endl; if (result == RETURN_OK) { continue; }