From 1b23aa42463dd3188b99d44fd42a6ce7b5f3d5a1 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 30 Jun 2023 12:01:18 +0200 Subject: [PATCH] bugfixes and improvements for dest handler --- src/fsfw/cfdp/handler/DestHandler.cpp | 6 +++--- src/fsfw/cfdp/handler/DestHandler.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fsfw/cfdp/handler/DestHandler.cpp b/src/fsfw/cfdp/handler/DestHandler.cpp index 76beb855..92950e37 100644 --- a/src/fsfw/cfdp/handler/DestHandler.cpp +++ b/src/fsfw/cfdp/handler/DestHandler.cpp @@ -415,9 +415,9 @@ ReturnValue_t cfdp::DestHandler::tryBuildingAbsoluteDestName(size_t destNameSize return OK; } -void cfdp::DestHandler::fileErrorHandler(Event event, ReturnValue_t result, const char* info) { - fsfwParams.eventReporter->forwardEvent(events::FILENAME_TOO_LARGE_ERROR, - static_cast(fsmRes.step), result); +void cfdp::DestHandler::fileErrorHandler(Event event, ReturnValue_t result, + const char* info) const { + fsfwParams.eventReporter->forwardEvent(event, static_cast(fsmRes.step), result); #if FSFW_CPP_OSTREAM_ENABLED == 1 sif::warning << "cfdp::DestHandler: " << info << std::endl; #endif diff --git a/src/fsfw/cfdp/handler/DestHandler.h b/src/fsfw/cfdp/handler/DestHandler.h index fb7cd880..5b42124f 100644 --- a/src/fsfw/cfdp/handler/DestHandler.h +++ b/src/fsfw/cfdp/handler/DestHandler.h @@ -181,7 +181,7 @@ class DestHandler { ReturnValue_t sendFinishedPdu(); ReturnValue_t noticeOfCompletion(); ReturnValue_t checksumVerification(); - void fileErrorHandler(Event event, ReturnValue_t result, const char* info); + void fileErrorHandler(Event event, ReturnValue_t result, const char* info) const; const FsmResult& updateFsmRes(uint8_t errors); void checkAndHandleError(ReturnValue_t result, uint8_t& errorIdx); void finish();