thermferm/thermferm.c

changeset 86
3d7a241329e2
parent 83
f99e9d6deff5
child 93
b759f814469d
equal deleted inserted replaced
85:c3cc6e44d1a4 86:3d7a241329e2
123 openlog("thermferm", LOG_PID|LOG_CONS|LOG_NOWAIT, LOG_USER); 123 openlog("thermferm", LOG_PID|LOG_CONS|LOG_NOWAIT, LOG_USER);
124 syslog(LOG_NOTICE, "mbsePi-apps thermferm v%s starting", VERSION); 124 syslog(LOG_NOTICE, "mbsePi-apps thermferm v%s starting", VERSION);
125 if (debug) 125 if (debug)
126 fprintf(stdout, "mbsePi-apps thermferm v%s starting\n", VERSION); 126 fprintf(stdout, "mbsePi-apps thermferm v%s starting\n", VERSION);
127 127
128 if (rdconfig((char *)"thermferm.xml")) { 128 if (rdconfig()) {
129 fprintf(stderr, "Error reading configuration\n"); 129 fprintf(stderr, "Error reading configuration\n");
130 syslog(LOG_NOTICE, "halted"); 130 syslog(LOG_NOTICE, "halted");
131 return 1; 131 return 1;
132 } 132 }
133 133
324 324
325 #ifdef HAVE_WIRINGPI_H 325 #ifdef HAVE_WIRINGPI_H
326 stopLCD(); 326 stopLCD();
327 #endif 327 #endif
328 328
329 wrconfig((char *)"thermferm.xml"); 329 wrconfig();
330 330
331 ulockprog((char *)"thermferm"); 331 ulockprog((char *)"thermferm");
332 332
333 if (debug) 333 if (debug)
334 fprintf(stdout, "Goodbye\n"); 334 fprintf(stdout, "Goodbye\n");

mercurial