Fan off during cooling

Thu, 10 Aug 2017 20:32:50 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 10 Aug 2017 20:32:50 +0200
changeset 531
2e42fdf59019
parent 530
d33516eac22f
child 532
34bf9f389749

Fan off during cooling

thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- a/thermferm/thermferm.c	Thu Aug 10 16:27:54 2017 +0200
+++ b/thermferm/thermferm.c	Thu Aug 10 20:32:50 2017 +0200
@@ -1765,9 +1765,10 @@
 		    /*
 		     * If there is a fan, and the unit door is closed, and the unit should be doing
 		     * something, then turn on the global fan.
+		     * But if there is a chiller, do not turn it on if cooling.
 		     */
 		    if (unit->fan_address) {
-			if (unit->door_state) {
+			if ((unit->door_state) && (unit->cooler_state == 0)) {
 			    if (unit->fan_wait < unit->fan_delay) {
 			    	unit->fan_wait++;
 			    } else {

mercurial