syslog_rpmsg: Ensure the syslog ept is ready when rpmsg_send
Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
parent
355742bd9b
commit
279a676978
|
@ -125,6 +125,11 @@ static bool syslog_rpmsg_transfer(FAR struct syslog_rpmsg_s *priv, bool wait)
|
||||||
size_t off;
|
size_t off;
|
||||||
size_t len_end;
|
size_t len_end;
|
||||||
|
|
||||||
|
if (!is_rpmsg_ept_ready(&priv->ept))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
msg = rpmsg_get_tx_payload_buffer(&priv->ept, &space, wait);
|
msg = rpmsg_get_tx_payload_buffer(&priv->ept, &space, wait);
|
||||||
|
|
Loading…
Reference in New Issue