This commit is contained in:
parent
6f2eaee50a
commit
7e9648eabf
@ -168,12 +168,14 @@ ReturnValue_t CfdpHandler::handleCfdpRequest(CommandMessage& msg) {
|
||||
RemoteEntityCfg* remoteCfg;
|
||||
remoteCfgProvider.getRemoteCfg(putRequest.getDestId(), &remoteCfg);
|
||||
if (remoteCfg == nullptr) {
|
||||
sif::error << "CfdpHandler: No remote configuration found for destination ID " <<
|
||||
putRequest.getDestId() << std::endl;
|
||||
sif::error << "CfdpHandler: No remote configuration found for destination ID "
|
||||
<< putRequest.getDestId() << std::endl;
|
||||
// TODO: Trigger event
|
||||
return FAILED;
|
||||
}
|
||||
sif::info << "starting transfer" << std::endl;
|
||||
sif::info << "Starting file copy operation for source file "
|
||||
<< putRequest.getSourceName().getString() << " and dest file "
|
||||
<< putRequest.getDestName().getString() << std::endl;
|
||||
return srcHandler.transactionStart(putRequest, *remoteCfg);
|
||||
}
|
||||
}
|
||||
@ -203,8 +205,8 @@ ReturnValue_t CfdpHandler::handleCfdpMessages() {
|
||||
status = cfdpRequestQueue.receiveMessage(&cfdpMsg)) {
|
||||
result = handleCfdpRequest(cfdpMsg);
|
||||
if (result != OK) {
|
||||
sif::warning << "Handling CFDP request failed with code 0x" << std::setw(4) << std::hex <<
|
||||
result << std::dec << std::endl;
|
||||
sif::warning << "Handling CFDP request failed with code 0x" << std::setw(4) << std::hex
|
||||
<< result << std::dec << std::endl;
|
||||
triggerEvent(cfdp::events::HANDLING_CFDP_REQUEST_FAILED, 0, result);
|
||||
// TODO: Maybe add printout with context specific information?
|
||||
status = result;
|
||||
|
2
tmtc
2
tmtc
@ -1 +1 @@
|
||||
Subproject commit d72b7d9d663013ac75350728edffa15f7a379039
|
||||
Subproject commit 7f79ef6c12604fcf827890c7f47aec823f7d3efc
|
Loading…
Reference in New Issue
Block a user