aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-01-30 16:47:22 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-01-30 16:47:22 +0200
commitbdb2ae480c0616dff10deabaa7c8cbb6fa16ffff (patch)
treebd5b6068a5e56b30cd26a025a20cc456c4d9fcdf /Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
parente1a8c002ded63f0ff87f8b2e9dc93370ff51e5ba (diff)
downloadTango-bdb2ae480c0616dff10deabaa7c8cbb6fa16ffff.tar.gz
Tango-bdb2ae480c0616dff10deabaa7c8cbb6fa16ffff.zip
Version 1.4.6.7 : beginning of removing the #ifdefs. Sylco head and arc head temperature control fixed. new events (version 18),
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication/CommunicationTask.c')
-rw-r--r--Software/Embedded_SW/Embedded/Communication/CommunicationTask.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
index 56ceccd28..5369878f8 100644
--- a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
+++ b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
@@ -73,13 +73,18 @@ uint32_t initArray(size_t initialSize)
}
else
{
- int i;
+ int i,j;
for (i = 0; i < 10; i++)
{
if (SerialBufferUsed[i] == false)
break;
}
- if (i == 10) return 0xFF;
+ if (i == 10)
+ {
+ for (j = 0; j < 10; j++)
+ Report("initArray all buffers busy", __FILE__, j, inBuffer[j].size, RpWarning, (int)SerialBufferUsed[j], 0);
+ return 0xFF;
+ }
else
{
SerialBufferUsed[i] = true;