diff options
| author | Avi Levkovich <avi@twine-s.com> | 2019-08-01 17:22:53 +0300 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2019-08-01 17:22:53 +0300 |
| commit | 42471da0b2a19c964fc2c3df39cc2e8a6aaf5e2e (patch) | |
| tree | fe233e51157d3d17a2eafe85f93df0b8b865826e /Software/Embedded_SW/Embedded/Communication/Container.c | |
| parent | 293cca91ee3737b47424d1f7febd9dca8b0a9c03 (diff) | |
| download | Tango-42471da0b2a19c964fc2c3df39cc2e8a6aaf5e2e.tar.gz Tango-42471da0b2a19c964fc2c3df39cc2e8a6aaf5e2e.zip | |
update the new FPGA (17.6.19) addresses and the function Change_Motor_SPI_Direction
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication/Container.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Communication/Container.c | 9 |
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: |
