# HG changeset patch # User Michiel Broek # Date 1406709714 -7200 # Node ID 1e0a698401dfe7622d0bba7c8b58847328338d56 # Parent f019ea6a9d3160f0d35ac628bd3213f08d720c93 Removed old thermferm.log file diff -r f019ea6a9d31 -r 1e0a698401df thermferm/thermferm.c --- 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) {