diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-11-02 20:13:27 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-11-02 20:13:27 +0200 |
| commit | 2a8d3d38bd80fe011f8e6921742574b2ff71fa72 (patch) | |
| tree | c1d2dd4c52d0e255039ed561363741df875155e7 /Software/Embedded_SW/Embedded/Communication | |
| parent | f0905c07b9b5bc33aa9bad914ca799cf1e8a920c (diff) | |
| download | Tango-2a8d3d38bd80fe011f8e6921742574b2ff71fa72.tar.gz Tango-2a8d3d38bd80fe011f8e6921742574b2ff71fa72.zip | |
warning removed!
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Communication/CommunicationTask.c | 4 | ||||
| -rw-r--r-- | Software/Embedded_SW/Embedded/Communication/Connection.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c index aa514d17a..997175a5d 100644 --- a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c +++ b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c @@ -54,7 +54,7 @@ uint32_t initArray(size_t initialSize) if (SerialBufferUsed[10] == false) { SerialBufferUsed[10] = true; - inBuffer[10].buffer = CommRxBuffer; + inBuffer[10].buffer = (char *)&CommRxBuffer[0]; inBuffer[10].used = 0; inBuffer[10].size = initialSize; //Report("initArray", __FILE__, 10, inBuffer[10].size, RpWarning, (int)0, 0); @@ -63,7 +63,7 @@ uint32_t initArray(size_t initialSize) else if (SerialBufferUsed[11] == false) { SerialBufferUsed[11] = true; - inBuffer[11].buffer = CommRxBuffer; + inBuffer[11].buffer = (char *)&CommRxBuffer[1]; inBuffer[11].used = 0; inBuffer[11].size = initialSize; //Report("initArray", __FILE__, 10, inBuffer[10].size, RpWarning, (int)0, 0); diff --git a/Software/Embedded_SW/Embedded/Communication/Connection.c b/Software/Embedded_SW/Embedded/Communication/Connection.c index 4bde97d46..7f4efdd1b 100644 --- a/Software/Embedded_SW/Embedded/Communication/Connection.c +++ b/Software/Embedded_SW/Embedded/Communication/Connection.c @@ -20,6 +20,7 @@ #include "Common/SWUpdate/FileSystem.h" #include "Common/SW_Info/SW_Info.h" #include "Common/report/report.h" +#include "Communication/CommunicationTask.h" #include <utils/ustdlib.h> #include "drivers/FPGA/FPGA.h" #include "Drivers/FPGA/FPGA_GPIO/FPGA_GPIO.h" |
