? why was i casting this to uint8_t?

This commit is contained in:
2026-08-21 00:39:18 +02:00
parent f74af3122c
commit e6170fc9cc

View File

@@ -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]);
}
}