some wack overflow bug?

This commit is contained in:
2026-07-21 22:48:46 +02:00
parent c2f19b83f4
commit c693e892d0

View File

@@ -243,7 +243,7 @@ void aio_update(struct aio_t *aio) {
case BALANCED:
if (fan_duty > 65)
aio->pump_counter++;
else if (fan_duty < 35)
else if (fan_duty < 35 && aio->pump_counter > 0)
aio->pump_counter--;
if (aio->pump_counter > 120)
@@ -253,7 +253,7 @@ void aio_update(struct aio_t *aio) {
break;
case EXTREME:
if (fan_duty < 60)
if (fan_duty < 60 && aio->pump_counter > 0)
aio->pump_counter--;
if (aio->pump_counter < 60)