Extended mbus_recv_frame() error codes, improved collision handling
- handling TCP connection reset and read(2) timeout
This commit is contained in:
2
bin/mbus-serial-switch-baudrate.c
Normal file → Executable file
2
bin/mbus-serial-switch-baudrate.c
Normal file → Executable file
@ -72,7 +72,7 @@ main(int argc, char **argv)
|
||||
|
||||
ret = mbus_recv_frame(handle, &reply);
|
||||
|
||||
if (ret == -1)
|
||||
if (ret == -3)
|
||||
{
|
||||
printf("No reply from device\n");
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user