probably not even needed
This commit is contained in:
@@ -8,7 +8,6 @@ static const uint8_t buf_size = 32; // needs 32 bc of overflow issue on these ai
|
|||||||
static int aio_post(libusb_device_handle *dev, uint8_t *req, const int req_len, uint8_t *resp, const int resp_len) {
|
static int aio_post(libusb_device_handle *dev, uint8_t *req, const int req_len, uint8_t *resp, const int resp_len) {
|
||||||
int transferred;
|
int transferred;
|
||||||
int r = libusb_bulk_transfer(dev, 0x01, req, req_len, &transferred, 1000);
|
int r = libusb_bulk_transfer(dev, 0x01, req, req_len, &transferred, 1000);
|
||||||
usleep(5 * 1000); /* 5ms — give the device time to prepare the response */
|
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user