[ancs] add high level getMessageSize(),

implement using AdaMsg
This commit is contained in:
hathach committed 2017-04-14 18:01:23 +07:00
1 parent 73482c59e0
commit 89647bd02c
6 files changed
+71 -73

No files matched your search

@@ -49,7 +49,10 @@ AdaMsg::AdaMsg(void)
void AdaMsg::begin(bool dynamic)
{
_dynamic = dynamic;
if ( !_dynamic ) _sem = xSemaphoreCreateBinary();
if ( !_dynamic )
{
_sem = xSemaphoreCreateCounting(10, 0);
}
}
void AdaMsg::stop(void)