From e6170fc9cc3f36e57d732f15cd49ac64bd104a23 Mon Sep 17 00:00:00 2001 From: Drath Date: Fri, 21 Aug 2026 00:39:18 +0200 Subject: [PATCH] ? why was i casting this to uint8_t? --- src/aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aio.c b/src/aio.c index c5fa0ce..c3fa81a 100644 --- a/src/aio.c +++ b/src/aio.c @@ -86,7 +86,7 @@ static void aio_get_fan_speed(libusb_device_handle *dev, uint16_t *speeds) { req[1] = i; if (aio_post(dev, 2, 6) != 0) speeds[i] = UINT16_MAX; - speeds[i] = (uint8_t)(resp[4] << 8 | resp[5]); + speeds[i] = (uint16_t)(resp[4] << 8 | resp[5]); } }