Add a sane default for profile precessing.

Wed, 13 Aug 2014 22:02:14 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 13 Aug 2014 22:02:14 +0200
changeset 237
51a294d683cd
parent 236
37351d6a8d0b
child 238
a0f1deb65889

Add a sane default for profile precessing.

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