# HG changeset patch # User Michiel Broek # Date 1407960134 -7200 # Node ID 51a294d683cdb3c800cd1d442c051d432a4d17d4 # Parent 37351d6a8d0b79560ddfd660b52625f8f21935d4 Add a sane default for profile precessing. diff -r 37351d6a8d0b -r 51a294d683cd thermferm/server.c --- 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; } }