events for FSFW specific errors

This commit is contained in:
Robin Müller 2022-10-17 12:20:26 +02:00
parent e893e73f86
commit 79c38b45df
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -430,7 +430,7 @@ ReturnValue_t cfdp::DestHandler::sendFinishedPdu() {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::warning << "cfdp::DestHandler:sendFinishedPdu: Getting store slot failed" << std::endl;
#endif
// TODO: Error handling and event, this is a non CFDP specific error (most likely store is full)
fp.eventReporter->forwardEvent(events::STORE_ERROR, result, 0);
return result;
}
size_t serLen = 0;
@ -440,7 +440,7 @@ ReturnValue_t cfdp::DestHandler::sendFinishedPdu() {
sif::warning << "cfdp::DestHandler::sendFinishedPdu: Serializing Finished PDU failed"
<< std::endl;
#endif
// TODO: Event, non CFDP specific error
fp.eventReporter->forwardEvent(events::SERIALIZATION_ERROR, result, 0);
return result;
}
TmTcMessage msg(storeId);