aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication/CommunicationTask.c')
-rw-r--r--Software/Embedded_SW/Embedded/Communication/CommunicationTask.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
index b0b5115a2..9492876a2 100644
--- a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
+++ b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
@@ -31,11 +31,12 @@ struct serialBuffer {
size_t used;
size_t size;
} typedef SerialBuffer;
-#define SHORT_BUFFER_SIZE 100
-char CommRxBuffer[COMM_MAX_BUFFER_SIZE];
+#define SHORT_BUFFER_SIZE 200
char CommShortRxBuffer[10][SHORT_BUFFER_SIZE];
+char CommRxBuffer[COMM_MAX_BUFFER_SIZE];
+char DuplicateRxBuffer[2][2100];
SerialBuffer inBuffer[11];
-bool SerialBufferUsed[11] = {false,false,false,false,false,false,false,false,false,false,false,false};
+bool SerialBufferUsed[11] = {false,false,false,false,false,false,false,false,false,false,false};
uint32_t initArray(size_t initialSize)
{
if (initialSize >= COMM_MAX_BUFFER_SIZE) return 0;
@@ -66,7 +67,7 @@ uint32_t initArray(size_t initialSize)
else
{
SerialBufferUsed[i] = true;
- inBuffer[i].buffer = CommRxBuffer;
+ inBuffer[i].buffer = &CommShortRxBuffer[i];
inBuffer[i].used = 0;
inBuffer[i].size = initialSize;
return i;