aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-07-26 16:34:16 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-07-26 16:34:16 +0300
commit5accee4df85cc47b5700ad32090451ded2a121fa (patch)
tree11dc6229de126d5c9fc8135bfeacd88151e6ed77 /Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
parent4ff8fc0265f11be7b73548e36c7ee3d1debfb8e4 (diff)
downloadTango-5accee4df85cc47b5700ad32090451ded2a121fa.tar.gz
Tango-5accee4df85cc47b5700ad32090451ded2a121fa.zip
warning removed. diagnostics stops when the commtx mailbox is full.
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication/CommunicationTask.c')
-rw-r--r--Software/Embedded_SW/Embedded/Communication/CommunicationTask.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
index aa50b4db8..b6841ef7e 100644
--- a/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
+++ b/Software/Embedded_SW/Embedded/Communication/CommunicationTask.c
@@ -122,7 +122,7 @@ void communicationTask(UArg arg0, UArg arg1)
}
-uint32_t CommunicationTaskSendMessage(char* buffer,size_t length)
+bool CommunicationTaskSendMessage(char* buffer,size_t length)
{
CommTxMessageStruc Message;
CommTxMsgCounter++;
@@ -131,9 +131,9 @@ uint32_t CommunicationTaskSendMessage(char* buffer,size_t length)
Message.msgSize = length;
Message.Buff = buffer;
if (CommunicationTxMsgQ != NULL)
- /*retcode =*/ Mailbox_post(CommunicationTxMsgQ , &Message, BIOS_NO_WAIT);
+ return Mailbox_post(CommunicationTxMsgQ , &Message, BIOS_NO_WAIT);
- return OK;
+ return false;
}
int32_t SetCommunicationPath(bool UARTorUSB)
{