From e083dcc4475cb279a3098d9ea155cb736edfed9a Mon Sep 17 00:00:00 2001 From: drath Date: Sun, 24 May 2026 12:33:30 +0200 Subject: [PATCH] wasnt even using the ret value --- src/aio.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/aio.c b/src/aio.c index 96d2246..33495b0 100644 --- a/src/aio.c +++ b/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) {