From 63a00b8b4fffeff299778806653ca3a271c236a3 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Thu, 14 Mar 2024 16:19:44 +0100 Subject: [PATCH] initialize fdir instance in constructor of FreshDeviceHandlerBase --- misc/defaultcfg/fsfwconfig/FSFWConfig.h | 2 +- src/fsfw/devicehandlers/FreshDeviceHandlerBase.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/defaultcfg/fsfwconfig/FSFWConfig.h b/misc/defaultcfg/fsfwconfig/FSFWConfig.h index e80abf24..290904e7 100644 --- a/misc/defaultcfg/fsfwconfig/FSFWConfig.h +++ b/misc/defaultcfg/fsfwconfig/FSFWConfig.h @@ -11,7 +11,7 @@ //! Used to determine whether C++ ostreams are used which can increase //! the binary size significantly. If this is disabled, //! the C stdio functions can be used alternatively -#define FSFW_CPP_OSTREAM_ENABLED 1 +#define FSFW_CPP_OSTREAM_ENABLED 0 //! More FSFW related printouts depending on level. Useful for development. #define FSFW_VERBOSE_LEVEL 1 diff --git a/src/fsfw/devicehandlers/FreshDeviceHandlerBase.cpp b/src/fsfw/devicehandlers/FreshDeviceHandlerBase.cpp index 2b4ab27b..46ae02de 100644 --- a/src/fsfw/devicehandlers/FreshDeviceHandlerBase.cpp +++ b/src/fsfw/devicehandlers/FreshDeviceHandlerBase.cpp @@ -11,6 +11,7 @@ FreshDeviceHandlerBase::FreshDeviceHandlerBase(DhbConfig config) healthHelper(this, getObjectId()), paramHelper(this), poolManager(this, nullptr), + fdirInstance(config.fdirInstance), defaultFdirParent(config.defaultFdirParent) { auto mqArgs = MqArgs(config.objectId, static_cast(this)); messageQueue = QueueFactory::instance()->createMessageQueue(