trigger a useful event
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
This commit is contained in:
@ -173,6 +173,7 @@ ReturnValue_t CfdpHandler::handleCfdpRequest(CommandMessage& msg) {
|
||||
// TODO: Trigger event
|
||||
return FAILED;
|
||||
}
|
||||
sif::info << "starting transfer" << std::endl;
|
||||
return srcHandler.transactionStart(putRequest, *remoteCfg);
|
||||
}
|
||||
}
|
||||
@ -202,6 +203,9 @@ 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;
|
||||
triggerEvent(cfdp::events::HANDLING_CFDP_REQUEST_FAILED, 0, result);
|
||||
// TODO: Maybe add printout with context specific information?
|
||||
status = result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user