samples: ipc: Fix length of message to send in openamp rsc table sample
Sample openamp_rsc_table was sending too many characters to master. It was displayed as unrecognised character when reading message on master. Signed-off-by: Marc-Antoine Riou <marc-antoine.riou@iot.bzh>
This commit is contained in:
parent
5f83c3fe4d
commit
d470f464eb
|
@ -321,7 +321,7 @@ void app_rpmsg_tty(void *arg1, void *arg2, void *arg3)
|
|||
if (tty_msg.len) {
|
||||
snprintf(tx_buff, 13, "TTY 0x%04x: ", tty_ept.addr);
|
||||
memcpy(&tx_buff[12], tty_msg.data, tty_msg.len);
|
||||
rpmsg_send(&tty_ept, tx_buff, tty_msg.len + 13);
|
||||
rpmsg_send(&tty_ept, tx_buff, tty_msg.len + 12);
|
||||
rpmsg_release_rx_buffer(&tty_ept, tty_msg.data);
|
||||
}
|
||||
tty_msg.len = 0;
|
||||
|
|
Loading…
Reference in a new issue