thermferm/server.c

changeset 77
143077e54255
parent 75
4b976601737d
child 79
eb9dd60aa791
--- a/thermferm/server.c	Wed Jun 25 16:16:47 2014 +0200
+++ b/thermferm/server.c	Wed Jun 25 16:56:09 2014 +0200
@@ -61,7 +61,7 @@
 
 void defaultControlConstants(void)
 {
-	Config.cc_tempFormat = 'C';
+	Config.tempFormat = 'C';
 	Config.cc_tempSetMin = 1.0;
 	Config.cc_tempSetMax = 30.0;
 	Config.cc_idleRangeH = 1.000;
@@ -192,7 +192,7 @@
 		srv_send("%.1f", Config.cs_beerSet);
 	    } else if (strncmp(buf, "getControlConstants", 19) == 0) {
 		srv_send("{ \"tempFormat\":\"%c\", \"tempSetMin\":%.1f, \"tempSetMax\":%.1f, \"idleRangeH\":%.3f, \"idleRangeL\":%.3f }", 
-			Config.cc_tempFormat, Config.cc_tempSetMin, Config.cc_tempSetMax, Config.cc_idleRangeH, Config.cc_idleRangeL );
+			Config.tempFormat, Config.cc_tempSetMin, Config.cc_tempSetMax, Config.cc_idleRangeH, Config.cc_idleRangeL );
 	    } else if (strncmp(buf, "getControlSettings", 18) == 0) {
 		srv_send("{ \"mode\":\"%c\", \"beerSet\":%.1f, \"fridgeSet\":%.1f, \"heatEstimator\":%.1f, \"coolEstimator\":%.1f }", 
 			Config.cs_mode, Config.cs_beerSet, Config.cs_fridgeSet, Config.cs_heatEstimator, Config.cs_coolEstimator);

mercurial