Skip to content

Commit 279a676

Browse files
yintaoxiaoxiang781216
authored andcommitted
syslog_rpmsg: Ensure the syslog ept is ready when rpmsg_send
Signed-off-by: yintao <yintao@xiaomi.com>
1 parent 355742b commit 279a676

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/syslog/syslog_rpmsg.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ static bool syslog_rpmsg_transfer(FAR struct syslog_rpmsg_s *priv, bool wait)
125125
size_t off;
126126
size_t len_end;
127127

128+
if (!is_rpmsg_ept_ready(&priv->ept))
129+
{
130+
return false;
131+
}
132+
128133
do
129134
{
130135
msg = rpmsg_get_tx_payload_buffer(&priv->ept, &space, wait);

0 commit comments

Comments
 (0)