trigger a useful event
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
2023-08-31 15:10:43 +02:00
parent ea2a137aec
commit 6f2eaee50a
13 changed files with 516 additions and 487 deletions

View File

@ -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;
}