diff --git a/bsp_q7s/ObjectFactory.cpp b/bsp_q7s/ObjectFactory.cpp index 8da44279..32a00ef1 100644 --- a/bsp_q7s/ObjectFactory.cpp +++ b/bsp_q7s/ObjectFactory.cpp @@ -542,8 +542,7 @@ void ObjectFactory::produce(){ I2cCookie* imtqI2cCookie = new I2cCookie(addresses::IMTQ, IMTQ::MAX_REPLY_SIZE, std::string("/dev/i2c-0")); IMTQHandler* imtqHandler = new IMTQHandler(objects::IMTQ_HANDLER, objects::I2C_COM_IF, imtqI2cCookie); -// imtqHandler->setStartUpImmediately(); - (void) imtqHandler; + imtqHandler->setStartUpImmediately(); UartCookie* plocUartCookie = new UartCookie(std::string("/dev/ttyUL3"), 115200, PLOC::MAX_REPLY_SIZE); diff --git a/bsp_q7s/boardconfig/q7s_config.h b/bsp_q7s/boardconfig/q7s_config.h index 73cf2225..782ecf4f 100644 --- a/bsp_q7s/boardconfig/q7s_config.h +++ b/bsp_q7s/boardconfig/q7s_config.h @@ -1,7 +1,7 @@ #ifndef BSP_Q7S_BOARDCONFIG_Q7S_CONFIG_H_ #define BSP_Q7S_BOARDCONFIG_Q7S_CONFIG_H_ -#define Q7S_ADD_RTD_DEVICES 1 +#define Q7S_ADD_RTD_DEVICES 0 /* Only one of those 2 should be enabled! */ /* Add code for ACS board */ diff --git a/mission/devices/IMTQHandler.cpp b/mission/devices/IMTQHandler.cpp index 1d9d306f..124213a0 100644 --- a/mission/devices/IMTQHandler.cpp +++ b/mission/devices/IMTQHandler.cpp @@ -74,7 +74,7 @@ ReturnValue_t IMTQHandler::buildTransitionDeviceCommand( << std::endl; } } - return HasReturnvaluesIF::RETURN_OK; + return buildCommandFromCommand(*id, nullptr, 0);; } ReturnValue_t IMTQHandler::buildCommandFromCommand( diff --git a/mission/devices/devicedefinitions/IMTQHandlerDefinitions.h b/mission/devices/devicedefinitions/IMTQHandlerDefinitions.h index a7c32316..0de6ab2f 100644 --- a/mission/devices/devicedefinitions/IMTQHandlerDefinitions.h +++ b/mission/devices/devicedefinitions/IMTQHandlerDefinitions.h @@ -30,8 +30,9 @@ namespace IMTQ { static const uint8_t SIZE_GET_COMMANDED_DIPOLE_REPLY = 8; static const uint8_t SIZE_GET_CAL_MTM_MEASUREMENT = 15; static const uint8_t SIZE_GET_RAW_MTM_MEASUREMENT = 15; + static const uint16_t SIZE_SELF_TEST_RESULTS = 320; - static const uint8_t MAX_REPLY_SIZE = SIZE_ENG_HK_DATA_REPLY; + static const uint16_t MAX_REPLY_SIZE = SIZE_SELF_TEST_RESULTS; static const uint8_t MAX_COMMAND_SIZE = 9; /** Define entries in IMTQ specific dataset */