dont actually fw colors its good

This commit is contained in:
2026-06-07 17:49:56 +02:00
parent 21d897886c
commit 6d8b74ce3d

View File

@@ -67,6 +67,9 @@ static void aio_set_pump_mode(libusb_device_handle* dev, const enum aio_pump_mod
}
static void aio_set_color(libusb_device_handle* dev, const enum aio_color_mode_t mode, const uint8_t speed, const struct rgb_t* colors, const uint8_t color_count) {
if (colors == NULL) // NOLINT no its not
return;
const uint8_t modes[] = {0x52, 0x55, 0x55, 0x58};
uint8_t req[buf_size], resp[buf_size];
@@ -128,15 +131,11 @@ void aio_update(struct aio_t *aio) {
aio->pump_mode = aio_get_pump_mode(aio->handle);
aio_get_fan_speed(aio->handle, aio->fan_speed);
if (aio->water_temp > aio->t_b && aio->pump_mode != BALANCED) {
if (aio->water_temp > aio->t_b && aio->pump_mode != BALANCED)
aio_set_pump_mode(aio->handle, BALANCED);
aio_set_color(aio->handle, AIO_COLOR_FIXED, 0, &(struct rgb_t)AIO_COLOR_WHITE, 1);
}
if (aio->water_temp < aio->t_q && aio->pump_mode != QUIET) {
if (aio->water_temp < aio->t_q && aio->pump_mode != QUIET)
aio_set_pump_mode(aio->handle, QUIET);
aio_set_color(aio->handle, AIO_COLOR_FIXED, 0, &(struct rgb_t)AIO_COLOR_CYAN, 1);
}
aio_usb_release(aio->handle);
}