From 7eaa63a1aa520dc8e742de7ad920266a59a0f623 Mon Sep 17 00:00:00 2001 From: Drath Date: Fri, 10 Jul 2026 12:54:31 +0200 Subject: [PATCH] we alredy set the fan curve in aio.c, lets set pump set points there too --- include/aio.h | 2 +- src/aio.c | 8 ++++---- src/main.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/aio.h b/include/aio.h index 3a492fa..a653a95 100644 --- a/include/aio.h +++ b/include/aio.h @@ -51,7 +51,7 @@ struct aio_t { uint16_t fan_speed[2]; }; -void aio_detect(struct aio_t *aio, float t_quiet, float t_balanced, float t_extreme); +void aio_detect(struct aio_t *aio); void aio_update(struct aio_t *aio); void aio_close(const struct aio_t *aio); diff --git a/src/aio.c b/src/aio.c index 0c22ba7..7bb45a1 100644 --- a/src/aio.c +++ b/src/aio.c @@ -129,7 +129,7 @@ static void aio_set_fan_curve(libusb_device_handle* dev, const struct curve_poin applog(LOG_INF, "set up AIO fan curve"); } -void aio_detect(struct aio_t *aio, const float t_quiet, const float t_balanced, const float t_extreme) { +void aio_detect(struct aio_t *aio) { libusb_init(nullptr); aio->handle = libusb_open_device_with_vid_pid(nullptr, AIO_USB_VID, AIO_USB_PID); if (aio->handle == nullptr) { @@ -137,9 +137,9 @@ void aio_detect(struct aio_t *aio, const float t_quiet, const float t_balanced, return; } - aio->t_q = t_quiet; - aio->t_b = t_balanced; - aio->t_e = t_extreme; + aio->t_q = 36.5f; + aio->t_b = 38.5f; + aio->t_e = 41.0f; const struct curve_point_t fan_curve[] = { { 34, SPD2DTY(0)}, diff --git a/src/main.c b/src/main.c index a00a924..f1142a4 100644 --- a/src/main.c +++ b/src/main.c @@ -54,7 +54,7 @@ static void *sensors_thread(void *arg) { cpu_detect(&sensors->cpu, cpu_pcidev); gpu_detect(&sensors->gpu, gpu_pcidev); sys_detect(&sensors->sys, "nct6775.656"); - aio_detect(&sensors->aio, 36.5f, 38.5f, 41.0f); + aio_detect(&sensors->aio); /* main sensor loop */ applog(LOG_START, "reached sensors main loop");