syslog_rpmsg: Ensure the syslog ept is ready when rpmsg_send

Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
yintao 2024-04-12 18:38:56 +08:00 committed by Xiang Xiao
parent 355742bd9b
commit 279a676978
1 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,11 @@ static bool syslog_rpmsg_transfer(FAR struct syslog_rpmsg_s *priv, bool wait)
size_t off;
size_t len_end;
if (!is_rpmsg_ept_ready(&priv->ept))
{
return false;
}
do
{
msg = rpmsg_get_tx_payload_buffer(&priv->ept, &space, wait);