Browse Source

Check for zero timeout on _usb_write.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
8ecf929944
  1. 2
      usbutils.c

2
usbutils.c

@ -2288,6 +2288,8 @@ int _usb_write(struct cgpu_info *cgpu, int ep, char *buf, size_t bufsiz, int *pr @@ -2288,6 +2288,8 @@ int _usb_write(struct cgpu_info *cgpu, int ep, char *buf, size_t bufsiz, int *pr
break;
timeout = initial_timeout - (done * 1000);
if (!timeout)
break;
}
*processed = tot;

Loading…
Cancel
Save