wasnt even using the ret value

This commit is contained in:
2026-05-24 12:33:30 +02:00
parent 5686dcdbf6
commit e083dcc447

View File

@@ -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) {