refactor name
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user