some wack overflow bug?
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user