diff options
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication/Container.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Communication/Container.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/Container.c b/Software/Embedded_SW/Embedded/Communication/Container.c index a4c968939..a9bffa90d 100644 --- a/Software/Embedded_SW/Embedded/Communication/Container.c +++ b/Software/Embedded_SW/Embedded/Communication/Container.c @@ -43,7 +43,7 @@ #include "Common/report/report.h" #include "Connection.h" - +/* uint32_t TxmsgId[50] = {0}; uint32_t TxLength[50] = {0}; uint32_t TxAddr[50] = {0}; @@ -52,7 +52,7 @@ uint32_t msgId[50] = {0}; uint32_t Length[50] = {0}; uint32_t DataLength[50] = {0}; byte index = 0; - +*/ MessageContainer createContainer(MessageType type, char* token, protobuf_c_boolean completed, void* response, size_t (*packPtr)(void*, uint8_t*), size_t (*sizePtr)(void*)) { MessageContainer container = MESSAGE_CONTAINER__INIT; @@ -74,12 +74,12 @@ MessageContainer createContainer(MessageType type, char* token, protobuf_c_boole container.data.data = response_buffer; container.data.len = response_size; - TxmsgId[Txindex] = type; + /*TxmsgId[Txindex] = type; TxLength[Txindex] = response_size; TxAddr[Txindex] = response_buffer; if (Txindex++>=50) Txindex = 0; - +*/ //free(response); return container; } @@ -90,11 +90,11 @@ void receive_callback(char* buffer, size_t length) MessageContainer* requestContainer = message_container__unpack(NULL, length, (uint8_t*)buffer); // HeatingTestSendResonse(0, false,true,true, /*OriginalMotorSpd_2PPS[index]*/length,requestContainer->type,0,0, "Container"); - msgId[index] = requestContainer->type; +/* msgId[index] = requestContainer->type; Length[index] = length; DataLength[index] = requestContainer->data.len; if (index++>=50) - index = 0; + index = 0;*/ REPORT_MSG(requestContainer->type,"Message received"); switch(requestContainer->type) { |
