Experiment with zero window

Thu, 14 May 2015 22:03:35 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 14 May 2015 22:03:35 +0200
changeset 361
308f6a436779
parent 360
0f3fe4fa0977
child 362
c92651a54969

Experiment with zero window

thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- 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);

mercurial