thermferm/server.c

changeset 237
51a294d683cd
parent 235
885ad8d52126
child 240
6bdda35b4a13
--- a/thermferm/server.c	Wed Aug 13 21:48:57 2014 +0200
+++ b/thermferm/server.c	Wed Aug 13 22:02:14 2014 +0200
@@ -1228,6 +1228,13 @@
 					device_out(unit->heater_address, unit->heater_state);
 					device_out(unit->cooler_address, unit->cooler_state);
 					device_out(unit->fan_address, unit->fan_state);
+					if (unit->mode == UNITMODE_PROFILE) {
+					    /*
+					     * Set a sane default until it will be overruled by the
+					     * main processing loop.
+					     */
+					    unit->prof_target = 20.0;
+					}
 					break;
 				    }
 				}

mercurial