aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication')
-rw-r--r--Software/Embedded_SW/Embedded/Communication/Container.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/Container.c b/Software/Embedded_SW/Embedded/Communication/Container.c
index 86e1b06c4..a920aa5b8 100644
--- a/Software/Embedded_SW/Embedded/Communication/Container.c
+++ b/Software/Embedded_SW/Embedded/Communication/Container.c
@@ -53,12 +53,11 @@
/*uint16_t TxmsgId[MAX_CONT_LOG+1] = {0};
uint16_t TxLength[MAX_CONT_LOG+1] = {0};
uint32_t TxAddr[MAX_CONT_LOG+1] = {0};
-uint16_t Txindex = 0;
+uint16_t Txindex = 0;*/
uint32_t msgId[MAX_CONT_LOG+1] = {0};
uint32_t Length[MAX_CONT_LOG+1] = {0};
uint32_t DataLength[MAX_CONT_LOG+1] = {0};
-byte RxIndex = 0;*/
-
+byte RxIndex = 0;
MessageContainer createContainer(MessageType type, char* token, protobuf_c_boolean completed, void* response, size_t (*packPtr)(void*, uint8_t*), size_t (*sizePtr)(void*))
{
@@ -137,11 +136,11 @@ void receive_callback(char* buffer, size_t length)
REPORT_MSG(requestContainer->type,"Message received");
}
KeepAliveOneSecondCounter = 0;
- /*msgId[RxIndex] = requestContainer->type;
+ msgId[RxIndex] = requestContainer->type;
Length[RxIndex] = length;
DataLength[RxIndex] = msec_millisecondCounter;
if (RxIndex++>=MAX_CONT_LOG)
- RxIndex = 0;*/
+ RxIndex = 0;
switch(requestContainer->type)
{
case MESSAGE_TYPE__CalculateRequest: