# HG changeset patch # User Michiel Broek # Date 1406726857 -7200 # Node ID 9bcb380e639b431f0de9039febea8e440b3d6a22 # Parent ab90da2da45d645077ea4c889c3dd548ea418c0c# Parent 1e0a698401dfe7622d0bba7c8b58847328338d56 Merged diff -r ab90da2da45d -r 9bcb380e639b thermferm/thermferm.c --- 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) {