thermferm/rdconfig.c

changeset 262
d0014ccec615
parent 259
b7c967359771
child 268
dda91dfa4aa8
--- a/thermferm/rdconfig.c	Sat Aug 23 12:48:55 2014 +0200
+++ b/thermferm/rdconfig.c	Sat Aug 23 23:38:18 2014 +0200
@@ -637,15 +637,15 @@
 	   	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	   	return 1;
 	    }
-	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "AIR_TEMPERATURE", "%.1f", simulator->air_temperature)) < 0) {
+	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "AIR_TEMPERATURE", "%f", simulator->air_temperature)) < 0) {
 	    	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	    	return 1;
 	    }
-	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "BEER_TEMPERATURE", "%.1f", simulator->beer_temperature)) < 0) {
+	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "BEER_TEMPERATURE", "%f", simulator->beer_temperature)) < 0) {
 	    	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	    	return 1;
 	    }
-	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "COOLER_TEMP", "%.1f", simulator->cooler_temp)) < 0) {
+	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "COOLER_TEMP", "%f", simulator->cooler_temp)) < 0) {
 	    	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	    	return 1;
 	    }
@@ -657,7 +657,7 @@
 	    	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	    	return 1;
 	    }
-	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "HEATER_TEMP", "%.1f", simulator->heater_temp)) < 0) {
+	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "HEATER_TEMP", "%f", simulator->heater_temp)) < 0) {
 	    	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	    	return 1;
 	    }
@@ -681,7 +681,7 @@
 	    	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	    	return 1;
 	    }
-	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "S_YEAST_HEAT", "%.1f", simulator->s_yeast_heat)) < 0) {
+	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "S_YEAST_HEAT", "%f", simulator->s_yeast_heat)) < 0) {
 	    	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	    	return 1;
 	    }
@@ -689,11 +689,11 @@
 	    	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	    	return 1;
 	    }
-	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "S_COOL_TEMP", "%.1f", simulator->s_cool_temp)) < 0) {
+	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "S_COOL_TEMP", "%f", simulator->s_cool_temp)) < 0) {
 	    	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	    	return 1;
 	    }
-	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "S_HEAT_TEMP", "%.1f", simulator->s_heat_temp)) < 0) {
+	    if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "S_HEAT_TEMP", "%f", simulator->s_heat_temp)) < 0) {
 	    	syslog(LOG_WARNING, "wrconfig: error at xmlTextWriterWriteElement");
 	    	return 1;
 	    }

mercurial