refactor name

This commit is contained in:
2026-05-25 13:22:37 +00:00
parent b46731a9e1
commit a28da52f8a
3 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ enum aio_pump_mode_t : uint8_t {
struct aio_t{
libusb_device_handle* handle;
enum aio_pump_mode_t mode;
enum aio_pump_mode_t pump_mode;
float water_temp;
uint16_t pump_speed;
uint16_t fan_speed[2];

View File

@@ -91,13 +91,13 @@ void aio_update(struct aio_t *aio) {
aio->water_temp = aio_get_water_temp(aio->handle);
aio->pump_speed = aio_get_pump_speed(aio->handle);
aio->mode = aio_get_pump_mode(aio->handle);
aio->pump_mode = aio_get_pump_mode(aio->handle);
aio_get_fan_speed(aio->handle, aio->fan_speed);
if (aio->water_temp > 36.0f && aio->mode != BALANCED)
if (aio->water_temp > 36.0f && aio->pump_mode != BALANCED)
aio_set_pump_mode(aio->handle, BALANCED);
if (aio->water_temp < 34.0f && aio->mode != QUIET)
if (aio->water_temp < 34.0f && aio->pump_mode != QUIET)
aio_set_pump_mode(aio->handle, QUIET);
aio_usb_release(aio->handle);

View File

@@ -152,7 +152,7 @@ static void *display_thread(void *arg) {
lcd_writef(&lcd, 32, 2, "%3d/%3dW", sensors->gpu.power_avg, sensors->gpu.power_cap);
lcd_writef(&lcd, 0, 3, "%dMHz", sensors->cpu.avg_freq);
lcd_writef(&lcd, 8, 3, "%4dR-%c", sensors->aio.pump_speed, modes[sensors->aio.mode]);
lcd_writef(&lcd, 8, 3, "%4dR-%c", sensors->aio.pump_speed, modes[sensors->aio.pump_mode]);
lcd_writef(&lcd, 21, 3, "%12s", gpuclock);
lcd_writef(&lcd, 34, 3, "%.3fV", sensors->gpu.vcore);
}