Removed old thermferm.log file

Wed, 30 Jul 2014 10:41:54 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 30 Jul 2014 10:41:54 +0200
changeset 150
1e0a698401df
parent 149
f019ea6a9d31
child 152
9bcb380e639b

Removed old thermferm.log file

thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- a/thermferm/thermferm.c	Tue Jul 29 21:33:38 2014 +0200
+++ b/thermferm/thermferm.c	Wed Jul 30 10:41:54 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