Set sane default profile values when not using a profile.

Thu, 17 Sep 2015 17:09:09 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 17 Sep 2015 17:09:09 +0200
changeset 402
6b9f0c3c7f63
parent 401
0226d0f37bb7
child 403
230a9a169adb

Set sane default profile values when not using a profile.

thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- a/thermferm/thermferm.c	Thu Sep 17 17:01:15 2015 +0200
+++ b/thermferm/thermferm.c	Thu Sep 17 17:09:09 2015 +0200
@@ -1309,6 +1309,13 @@
 			    } /* switch */
 			}
 		    }
+		} else {
+		    /*
+		     * Set some sane values
+		     */
+		    unit->prof_target_lo = 19.8;
+		    unit->prof_target_hi = 20.2;
+		    unit->prof_fridge_mode = 0;
 		}
 
 		/*

mercurial