mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
examples/send_receive: Fix receive check.
This commit is contained in:
parent
251890e3b9
commit
0a24247de8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user