From: Shawn Hoffman <godisgovernment@xxxxxxxxx>
---
src/ftdi_stream.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ftdi_stream.c b/src/ftdi_stream.c
index 4229d94..d146afd 100644
--- a/src/ftdi_stream.c
+++ b/src/ftdi_stream.c
@@ -245,13 +245,13 @@ ftdi_readstream(struct ftdi_context *ftdi,
(ftdi->usb_read_timeout % 1000) * 1000 };
struct timeval now;
- int err = libusb_handle_events_timeout(ftdi->usb_ctx, &timeout);
- if (err == LIBUSB_ERROR_INTERRUPTED)
+ int xfer_err = libusb_handle_events_timeout(ftdi->usb_ctx, &timeout);
+ if (xfer_err == LIBUSB_ERROR_INTERRUPTED)
/* restart interrupted events */
- err = libusb_handle_events_timeout(ftdi->usb_ctx, &timeout);
+ xfer_err = libusb_handle_events_timeout(ftdi->usb_ctx, &timeout);
if (!state.result)
{
- state.result = err;
+ state.result = xfer_err;
}
if (state.activity == 0)
state.result = 1;
--
2.44.0.windows.1
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|