some fixes in IMTQ Handler

This commit is contained in:
Martin Zietz 2021-06-06 14:11:05 +02:00
parent d7024e1ee7
commit 427e36ed15
4 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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 */

View File

@ -74,7 +74,7 @@ ReturnValue_t IMTQHandler::buildTransitionDeviceCommand(
<< std::endl;
}
}
return HasReturnvaluesIF::RETURN_OK;
return buildCommandFromCommand(*id, nullptr, 0);;
}
ReturnValue_t IMTQHandler::buildCommandFromCommand(

View File

@ -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 */