examples/send_receive: Fix receive check.

This commit is contained in:
Uwe Hermann 2020-03-26 22:38:41 +01:00
parent 251890e3b9
commit 0a24247de8
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ int main(int argc, char **argv)
/* Try to receive the data on the other port. */
printf("Receiving %d bytes on port %s.\n",
size, sp_get_port_name(rx_port));
check(sp_blocking_read(rx_port, buf, size, timeout));
result = check(sp_blocking_read(rx_port, buf, size, timeout));
/* Check whether we received the number of bytes we wanted. */
if (result == size)