diff options
| author | Avi Levkovich <avi@twine-s.com> | 2020-01-13 09:15:00 +0200 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2020-01-13 09:15:00 +0200 |
| commit | 78d001b5ba7f6fac4fe44a266692addbdc19d6ac (patch) | |
| tree | be790f13eda3d055f25f02d94122cfb1140074f6 /Software/Embedded_SW/Embedded/Communication | |
| parent | 2323fb8dd806d91e35339d6e7e464a5ac97b6d7b (diff) | |
| download | Tango-78d001b5ba7f6fac4fe44a266692addbdc19d6ac.tar.gz Tango-78d001b5ba7f6fac4fe44a266692addbdc19d6ac.zip | |
advanced work on new head
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Communication/CommunicationTask.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c index 99debf806..f0258c8da 100644 --- a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c +++ b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c @@ -34,7 +34,7 @@ struct serialBuffer { size_t used; size_t size; } typedef SerialBuffer; -#define SHORT_BUFFER_SIZE 200 +#define SHORT_BUFFER_SIZE 100 char CommShortRxBuffer[10][SHORT_BUFFER_SIZE]; char CommRxBuffer[2][COMM_MAX_BUFFER_SIZE]; SerialBuffer inBuffer[12]; @@ -224,12 +224,12 @@ int32_t SetCommunicationPath(bool UARTorUSB) CommType = UARTorUSB; return OK; } -/*#define MAX_CONT_LOG 199 +#define MAX_CONT_LOG 199 uint16_t cSendSize[MAX_CONT_LOG+1] = {0}; uint32_t cSendTime[MAX_CONT_LOG+1] = {0}; uint16_t cSendindex = 0; -*/ + /****************************************************************************** * ======== communicationTask ======== * Task for this function is created statically. See the project's .cfg file. @@ -258,12 +258,12 @@ void communicationTxTask(UArg arg0, UArg arg1) else if (CommType == isUART) Uart_Tx(CommTxMessage.Buff, CommTxMessage.msgSize); } -/* cSendSize[cSendindex] = CommTxMessage.msgSize; + cSendSize[cSendindex] = CommTxMessage.msgSize; cSendTime[cSendindex] = msec_millisecondCounter; if (cSendindex++>=MAX_CONT_LOG) cSendindex = 0; -*/ + if (diagnosticscontainer_buffer == CommTxMessage.Buff) diagnosticscontainer_buffer = 0; my_free(CommTxMessage.Buff); |
