Skip to content

Commit

Permalink
rpmsg:slove rpmsg_test error.
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyyaojin committed Feb 26, 2025
1 parent 05a112e commit ffe2816
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/rpmsg/rpmsg_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ static int rpmsg_test_hold_rx(FAR struct rpmsg_test_priv_s *priv)
FAR struct rpmsg_test_msg_s *msg;
FAR struct rpmsg_test_msg_s *nmsg;
uint32_t space;
uint32_t nspace;
int num = 0;
int ret;

Expand All @@ -215,7 +216,7 @@ static int rpmsg_test_hold_rx(FAR struct rpmsg_test_priv_s *priv)

for (; ; )
{
nmsg = rpmsg_get_tx_payload_buffer(ept, &space, false);
nmsg = rpmsg_get_tx_payload_buffer(ept, &nspace, false);
num++;
msg->cmd = nmsg ? RPMSG_TEST_CMD_HOLD_RX :
RPMSG_TEST_CMD_HOLD_RX_END;
Expand All @@ -229,6 +230,7 @@ static int rpmsg_test_hold_rx(FAR struct rpmsg_test_priv_s *priv)
}

msg = nmsg;
space = nspace;
}

syslog(LOG_EMERG, "Rpmsg Test: tx buffer num=%d space=%" PRIu32 "\n",
Expand Down

0 comments on commit ffe2816

Please sign in to comment.