aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-12-15 11:05:55 +0200
committerShlomo Hecht <shlomo@twine-s.com>2019-12-15 11:05:55 +0200
commit465d58cf5cea8eb18789f1c2ffdb37f3c08b2ef6 (patch)
tree10edd03b619e45ab0f7b75040a6e68497f345731 /Software/Embedded_SW/Embedded/Communication
parent31aae881999f7adb512bd44860f3d74734d391c0 (diff)
downloadTango-465d58cf5cea8eb18789f1c2ffdb37f3c08b2ef6.tar.gz
Tango-465d58cf5cea8eb18789f1c2ffdb37f3c08b2ef6.zip
handle new head prep
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication')
-rw-r--r--Software/Embedded_SW/Embedded/Communication/CommunicationTask.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
index 43a185a3a..e9a785727 100644
--- a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
+++ b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
@@ -84,6 +84,7 @@ uint32_t initArray(size_t initialSize)
void insertArray(uint32_t buffer,char element)
{
+ assert(buffer<11);
SerialBuffer *a = &inBuffer[buffer];
// a->used is the number of used entries, because a->array[a->used++] updates a->used only *after* the array has been accessed.
// Therefore a->used can go up to a->size