Skip to content

Commit

Permalink
syslog_rpmsg: Ensure the syslog ept is ready when rpmsg_send
Browse files Browse the repository at this point in the history
Signed-off-by: yintao <[email protected]>
  • Loading branch information
yintao authored and xiaoxiang781216 committed Aug 22, 2024
1 parent 355742b commit 279a676
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/syslog/syslog_rpmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 279a676

Please sign in to comment.