timeout error in hk read

This commit is contained in:
Jakob Meier 2020-12-09 12:24:34 +01:00
parent ed77c97432
commit b8dd7b74cd
2 changed files with 3 additions and 3 deletions

View File

@ -122,11 +122,10 @@ ReturnValue_t P60DockComIF::readReceivedMessage(CookieIF *cookie,
case(P60DockCookie::READ_HK):{
uint32_t timeout = 1000;
uint8_t p60dockAddress = p60DockCookie->getCspAddress();
gs_param_table_instance_t tmData;
tmData.rows = (gs_param_table_row_t*)p60dock_hk;
tmData.id = tmTableNum;
tmData.row_count = p60dock_hk_count;
tmData.memory_size = tmTableSize;
tmData.memory_size = P60DOCK_HK_SIZE;
tmData.memory = replyBuffer;
/* Read complete module configuration table from P60 Dock and store data
* in buffer */

View File

@ -51,7 +51,8 @@ private:
unsigned int moduleConfigTableRows = 32;
uint8_t moduleCfgTableSize = 188;
uint8_t tmTableSize = 188;
uint8_t replyBuffer[P60DockComIF::maxReplyLength];
uint8_t replyBuffer[188];
gs_param_table_instance_t tmData;
};