throw out stuff
All checks were successful
EIVE/eive-obsw/pipeline/pr-cfdp-source-handler This commit looks good

This commit is contained in:
Robin Müller 2023-10-18 14:07:33 +02:00
parent ace75919ca
commit be6d52ff4a
Signed by: muellerr
GPG Key ID: A649FB78196E3849
3 changed files with 3 additions and 9 deletions

View File

@ -34,7 +34,6 @@ ReturnValue_t PapbVcInterface::write(const uint8_t* data, size_t size, size_t& w
}
// The user must call advance until completion before starting a new packet transfer.
if (writeActiveStatus) {
sif::debug << "is busy with writing" << std::endl;
return IS_BUSY;
}
if (size > packetBuf.capacity()) {
@ -48,7 +47,6 @@ ReturnValue_t PapbVcInterface::write(const uint8_t* data, size_t size, size_t& w
if (pollReadyForPacket()) {
startPacketTransfer(ByteWidthCfg::ONE);
} else {
sif::debug << "is busy can not even start" << std::endl;
return DirectTmSinkIF::IS_BUSY;
}
return advanceWrite(writtenSize);
@ -78,7 +76,6 @@ ReturnValue_t PapbVcInterface::advanceWrite(size_t& writtenSize) {
if (not pollReadyForPacket()) {
return PARTIALLY_WRITTEN;
}
sif::debug << "aborting unexpectedly" << std::endl;
abortPacketTransfer();
return returnvalue::FAILED;
}

View File

@ -181,8 +181,8 @@ ReturnValue_t LiveTmTask::handleGenericTmQueue(MessageQueueIF& queue, bool isCfd
<< std::setw(4) << std::hex << result << std::dec << std::endl;
}
} else if (result != returnvalue::OK) {
sif::error << "LiveTmTask: Channel write failed with code 0x" << std::hex << std::setw(4) <<
result << std::dec << std::endl;
sif::error << "LiveTmTask: Channel write failed with code 0x" << std::hex << std::setw(4)
<< result << std::dec << std::endl;
}
}
// Try delete in any case, ignore failures (which should not happen), it is more important to

View File

@ -67,15 +67,12 @@ ReturnValue_t VirtualChannel::handleWriteCompletionSynchronously(size_t& written
}
ReturnValue_t result = advanceWrite(writtenSize);
if (result == returnvalue::OK) {
sif::debug << "transfer complete" << std::endl;
// Transfer complete
return result;
} else if (result != PARTIALLY_WRITTEN) {
sif::debug << "transfer completion error" << std::endl;
// Some error where we can not or should not continue the transfer.
return result;
}
}
sif::debug << "wtf" << std::endl;
return returnvalue::FAILED;
}