thermferm/thermferm.c

changeset 155
0d86f3c0a07b
parent 150
1e0a698401df
child 156
5fb74d89f571
equal deleted inserted replaced
154:83502d2099eb 155:0d86f3c0a07b
292 lcd_buf_write(2, (char *)" Version %s ", VERSION); 292 lcd_buf_write(2, (char *)" Version %s ", VERSION);
293 #endif 293 #endif
294 294
295 for (unit = Config.units; unit; unit = unit->next) { 295 for (unit = Config.units; unit; unit = unit->next) {
296 if (unit->mode != UNITMODE_OFF) { 296 if (unit->mode != UNITMODE_OFF) {
297 snprintf(buf, 1023, "Mode,Air,Beer,Target,Heater,Cooler,Fan,Door"); 297 initlog(unit->name);
298 filename = xstrcpy(unit->name);
299 filename = xstrcat(filename, (char *)".log");
300 logger(filename, buf);
301 free(filename);
302 filename = NULL;
303 } 298 }
304 } 299 }
305 300
306 do { 301 do {
307 lcdupdate = FALSE; 302 lcdupdate = FALSE;

mercurial