wasnt even using the ret value
This commit is contained in:
10
src/aio.c
10
src/aio.c
@@ -5,14 +5,10 @@
|
||||
|
||||
static const uint8_t buf_size = 32; // needs 32 bc of overflow issue on these aios?
|
||||
|
||||
static int aio_post(libusb_device_handle *dev, uint8_t *req, const int req_len, uint8_t *resp, const int resp_len) {
|
||||
static void aio_post(libusb_device_handle *dev, uint8_t *req, const int req_len, uint8_t *resp, const int resp_len) {
|
||||
int transferred;
|
||||
int r = libusb_bulk_transfer(dev, 0x01, req, req_len, &transferred, 1000);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = libusb_bulk_transfer(dev, 0x81, resp, resp_len, &transferred, 1000);
|
||||
return r;
|
||||
libusb_bulk_transfer(dev, 0x01, req, req_len, &transferred, 1000);
|
||||
libusb_bulk_transfer(dev, 0x81, resp, resp_len, &transferred, 1000);
|
||||
}
|
||||
|
||||
float aio_get_water_temp(libusb_device_handle* aio) {
|
||||
|
||||
Reference in New Issue
Block a user