# HG changeset patch # User Michiel Broek # Date 1457178623 -3600 # Node ID 31b14c9ac6259dd8f75f247047850226434a293a # Parent 080c8ea4875e6524ba66f7376288e73fa750cbfc Switched PID to BOO mode for all modes. diff -r 080c8ea4875e -r 31b14c9ac625 thermferm/thermferm.c --- a/thermferm/thermferm.c Fri Feb 26 15:14:00 2016 +0100 +++ b/thermferm/thermferm.c Sat Mar 05 12:50:23 2016 +0100 @@ -1524,7 +1524,7 @@ unit->PID_cool->SetP = unit->beer_set; unit->PID_heat->SetP = unit->beer_set; unit->PID_cool->Input = unit->PID_heat->Input = unit->beer_temperature / 1000.0; - unit->PID_cool->Mode = unit->PID_heat->Mode = PID_MODE_AUTO; + unit->PID_cool->Mode = unit->PID_heat->Mode = PID_MODE_BOO; } else if (unit->mode == UNITMODE_PROFILE) { double usetemp; unit->PID_cool->SetP = unit->prof_target_hi; @@ -1538,7 +1538,7 @@ fprintf(stdout, " fridge_mode=%d measured=%.3f %.3f => %.3f\n", unit->prof_fridge_mode, unit->air_temperature / 1000.0, unit->beer_temperature / 1000.0, usetemp); unit->PID_cool->Input = unit->PID_heat->Input = usetemp; - unit->PID_cool->Mode = unit->PID_heat->Mode = PID_MODE_AUTO; + unit->PID_cool->Mode = unit->PID_heat->Mode = PID_MODE_BOO; } /*