From 8715683d6bf6d6ef5fbcfaf7f6217a0920dd9414 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 13 May 2022 17:25:06 +0200 Subject: [PATCH] enable periodic reply for eie RTD --- fsfw | 2 +- mission/devices/Max31865EiveHandler.cpp | 8 ++++++++ mission/devices/Max31865EiveHandler.h | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/fsfw b/fsfw index c0ff84bb..4841d5d9 160000 --- a/fsfw +++ b/fsfw @@ -1 +1 @@ -Subproject commit c0ff84bb9d81bc3444992fef38b74d260d54d5a0 +Subproject commit 4841d5d92d721383e92b521b584c7d0e62c9873d diff --git a/mission/devices/Max31865EiveHandler.cpp b/mission/devices/Max31865EiveHandler.cpp index 09ce8463..193dd10c 100644 --- a/mission/devices/Max31865EiveHandler.cpp +++ b/mission/devices/Max31865EiveHandler.cpp @@ -145,3 +145,11 @@ void Max31865EiveHandler::setDeviceInfo(uint8_t idx_, std::string location_) { idx = idx_; locString = std::move(location_); } + +ReturnValue_t Max31865EiveHandler::initialize() { + auto result = DeviceHandlerBase::initialize(); + if(result != RETURN_OK) { + return result; + } + return updatePeriodicReply(true, EiveMax31855::RtdCommands::EXCHANGE_SET_ID); +} diff --git a/mission/devices/Max31865EiveHandler.h b/mission/devices/Max31865EiveHandler.h index 3daaf291..07bf7938 100644 --- a/mission/devices/Max31865EiveHandler.h +++ b/mission/devices/Max31865EiveHandler.h @@ -26,6 +26,7 @@ class Max31865EiveHandler : public DeviceHandlerBase { uint32_t getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) override; ReturnValue_t initializeLocalDataPool(localpool::DataPool& localDataPoolMap, LocalDataPoolManager& poolManager) override; + ReturnValue_t initialize() override; void simpleCommand(EiveMax31855::RtdCommands cmd); std::array cmdBuf = {};