remove obsolete TODOs
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-09-12 14:32:11 +02:00
parent b6f28eb239
commit 51dafa56be
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -187,9 +187,6 @@ ReturnValue_t CfdpHandler::handlePduPacket(TmTcMessage& msg) {
} }
ReturnValue_t CfdpHandler::handleCfdpRequest(CommandMessage& msg) { ReturnValue_t CfdpHandler::handleCfdpRequest(CommandMessage& msg) {
// TODO: Handle CFDP requests here, most importantly put requests. If a put request is received,
// check whether one is pending. If none are, start a transaction with the put request,
// otherwise store for put request inside a FIFO for later processing.
if (msg.getCommand() == CfdpMessage::PUT_REQUEST) { if (msg.getCommand() == CfdpMessage::PUT_REQUEST) {
sif::info << "Received CFDP put request" << std::endl; sif::info << "Received CFDP put request" << std::endl;
if (srcHandler.getState() != CfdpState::IDLE) { if (srcHandler.getState() != CfdpState::IDLE) {
@ -199,7 +196,6 @@ ReturnValue_t CfdpHandler::handleCfdpRequest(CommandMessage& msg) {
} }
putRequestQueue.push(CfdpMessage::getStoreId(&msg)); putRequestQueue.push(CfdpMessage::getStoreId(&msg));
} else { } else {
// TODO: Retrieve put request and remote configuration.
PutRequest putRequest; PutRequest putRequest;
auto accessorPair = ipcStore.getData(CfdpMessage::getStoreId(&msg)); auto accessorPair = ipcStore.getData(CfdpMessage::getStoreId(&msg));
const uint8_t* dataPtr = accessorPair.second.data(); const uint8_t* dataPtr = accessorPair.second.data();