# HG changeset patch # User Michiel Broek # Date 1431633815 -7200 # Node ID 308f6a436779582c1fe058096a21792955d1cc71 # Parent 0f3fe4fa09771bf17189747e69b83d682b0a47ae Experiment with zero window diff -r 0f3fe4fa0977 -r 308f6a436779 thermferm/thermferm.c --- a/thermferm/thermferm.c Sun Apr 05 11:09:45 2015 +0200 +++ b/thermferm/thermferm.c Thu May 14 22:03:35 2015 +0200 @@ -1392,7 +1392,7 @@ } P_err = sp - pv; - if (P_err < unit->idle_rangeH && P_err > unit->idle_rangeL) { + if (P_err < unit->idle_rangeH && P_err > unit->idle_rangeL && usePid == FALSE) { P_err = 0.0; } @@ -1512,7 +1512,6 @@ if ((unit->heater_address && unit->heater_state) || (unit->cooler_address && unit->cooler_state)) { if (unit->fan_wait < unit->fan_delay) { unit->fan_wait++; -// syslog(LOG_NOTICE, "fan_wait + %d/%d", unit->fan_wait, unit->fan_delay); } else { if (! unit->fan_state) { syslog(LOG_NOTICE, "Unit `%s' Fan Off => On", unit->name); @@ -1522,7 +1521,6 @@ } else { if (unit->fan_wait > 0) { unit->fan_wait--; -// syslog(LOG_NOTICE, "fan_wait - %d/%d", unit->fan_wait, unit->fan_delay); } else { if (unit->fan_state) { syslog(LOG_NOTICE, "Unit `%s' Fan On => Off", unit->name);