1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-23 12:45:31 +02:00

tools/lib/atusb.c (atusb_interrupt): if we have an error, report it immediately

This commit is contained in:
Werner Almesberger 2011-04-10 19:54:42 -03:00
parent 39319e145a
commit 5dd2b4ae58

View File

@ -224,6 +224,7 @@ static int atusb_interrupt(void *dsc)
if (res < 0) {
fprintf(stderr, "ATUSB_POLL_INT: %d\n", res);
error = 1;
return -1;
}
return buf;