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:
Marc-Antoine Riou 2023-11-16 09:03:28 +01:00 committed by Fabio Baltieri
parent 5f83c3fe4d
commit d470f464eb

View file

@ -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;