thermferm/units.c

changeset 179
417ee898fb02
parent 175
b73490398368
child 181
4099412fca09
--- a/thermferm/units.c	Mon Aug 04 19:31:03 2014 +0200
+++ b/thermferm/units.c	Mon Aug 04 23:34:22 2014 +0200
@@ -58,6 +58,7 @@
 #endif
 {
     units_list		*unit;
+    devices_list	*device;
     int			rc, temp, deviation;
 
     /*
@@ -155,7 +156,15 @@
 	    if (my_shutdown)
 		break;
 
-
+	    device_out(unit->heater_address, unit->heater_state);
+	    if (my_shutdown)
+		break;
+	    device_out(unit->cooler_address, unit->cooler_state);
+	    if (my_shutdown)
+		break;
+	    device_out(unit->fan_address, unit->fan_state);
+	    if (my_shutdown)
+		break;
     	}
 	usleep(10000);
     }

mercurial