From 42471da0b2a19c964fc2c3df39cc2e8a6aaf5e2e Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Thu, 1 Aug 2019 17:22:53 +0300 Subject: update the new FPGA (17.6.19) addresses and the function Change_Motor_SPI_Direction --- Software/Embedded_SW/Embedded/Communication/Container.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Communication') 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: -- cgit v1.3.1