continue source handler

This commit is contained in:
2023-08-03 13:03:58 +02:00
parent a856f91c67
commit 3167988951
10 changed files with 29 additions and 12 deletions

View File

@ -40,6 +40,7 @@ cfdp::SourceHandler::SourceHandler(SourceHandlerParams params, FsfwParams fsfwPa
cfdp::SourceHandler::FsmResult& cfdp::SourceHandler::fsmNacked() {
ReturnValue_t result;
if (step == TransactionStep::IDLE) {
fsmResult.packetsSent = 0;
step = TransactionStep::TRANSACTION_START;
}
if (step == TransactionStep::TRANSACTION_START) {
@ -203,6 +204,7 @@ ReturnValue_t cfdp::SourceHandler::prepareAndSendMetadataPdu() {
if (result != OK) {
return result;
}
fsmResult.packetsSent += 1;
// Advance FSM if everything works
step = TransactionStep::SENDING_FILE_DATA;
return OK;