Merged

Wed, 30 Jul 2014 15:27:37 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 30 Jul 2014 15:27:37 +0200
changeset 152
9bcb380e639b
parent 151
ab90da2da45d (current diff)
parent 150
1e0a698401df (diff)
child 153
866a947b732a

Merged

--- a/thermferm/thermferm.c	Wed Jul 30 15:26:29 2014 +0200
+++ b/thermferm/thermferm.c	Wed Jul 30 15:27:37 2014 +0200
@@ -232,7 +232,7 @@
     time_t		now, last = (time_t)0;
     w1_therm		*tmp1;
     units_list		*unit;
-    int			rc, run = 1, temp, seconds = 0;
+    int			rc, run = 1, seconds = 0;
 #ifdef HAVE_WIRINGPI_H
     struct tm		*tm;
     int			row;
@@ -292,9 +292,6 @@
     lcd_buf_write(2, (char *)" Version %s     ", VERSION);
 #endif
 
-    snprintf(buf, 1023, "tempA,tempB");
-    logger((char *)"thermferm.log", buf);
-
     for (unit = Config.units; unit; unit = unit->next) {
 	if (unit->mode != UNITMODE_OFF) {
 	    snprintf(buf, 1023, "Mode,Air,Beer,Target,Heater,Cooler,Fan,Door");
@@ -352,16 +349,6 @@
 	    if (seconds == 60) {
 		seconds = 0;
 
-	    	if (Config.w1therms) {
-	    	    tmp1 = Config.w1therms;
-	    	    temp = tmp1->lastval;
-	    	    tmp1 = tmp1->next;
-	    	    if (temp && tmp1->lastval && run) {
-	    	    	snprintf(buf, 1023, "%.2f,%.2f", temp / 1000.0, tmp1->lastval / 1000.0);
-	    	    	logger((char *)"thermferm.log", buf);
-	    	    }
-	    	}
-
 		for (unit = Config.units; unit; unit = unit->next) {
 		    if (unit->mode != UNITMODE_OFF) {
 

mercurial