initialize fdir instance in constructor of FreshDeviceHandlerBase

This commit is contained in:
Jakob Meier 2024-03-14 16:19:44 +01:00
parent 3f2d83d95c
commit 63a00b8b4f
2 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@
//! Used to determine whether C++ ostreams are used which can increase //! Used to determine whether C++ ostreams are used which can increase
//! the binary size significantly. If this is disabled, //! the binary size significantly. If this is disabled,
//! the C stdio functions can be used alternatively //! 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. //! More FSFW related printouts depending on level. Useful for development.
#define FSFW_VERBOSE_LEVEL 1 #define FSFW_VERBOSE_LEVEL 1

View File

@ -11,6 +11,7 @@ FreshDeviceHandlerBase::FreshDeviceHandlerBase(DhbConfig config)
healthHelper(this, getObjectId()), healthHelper(this, getObjectId()),
paramHelper(this), paramHelper(this),
poolManager(this, nullptr), poolManager(this, nullptr),
fdirInstance(config.fdirInstance),
defaultFdirParent(config.defaultFdirParent) { defaultFdirParent(config.defaultFdirParent) {
auto mqArgs = MqArgs(config.objectId, static_cast<void*>(this)); auto mqArgs = MqArgs(config.objectId, static_cast<void*>(this));
messageQueue = QueueFactory::instance()->createMessageQueue( messageQueue = QueueFactory::instance()->createMessageQueue(