mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 02:34:04 +02:00
tools/lib/atusb-common.c (atusb_interrupt_wait): fix embarrassing build failure
This commit is contained in:
parent
bf067b3e73
commit
4690466a53
@ -221,7 +221,7 @@ int atusb_interrupt_wait(void *handle, int timeout_ms)
|
||||
return 0;
|
||||
|
||||
res = usb_bulk_read(dsc->dev, 1,
|
||||
(char *) &buf, sizeof(buf), timeout_ms < 0 : 0 : timeout_ms);
|
||||
(char *) &buf, sizeof(buf), timeout_ms < 0 ? 0 : timeout_ms);
|
||||
if (res == -ETIMEDOUT)
|
||||
return 0;
|
||||
if (res < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user