thermferm/devices.c

changeset 242
d3fe84ece349
parent 240
6bdda35b4a13
child 259
b7c967359771
equal deleted inserted replaced
241:4ba138737bf4 242:d3fe84ece349
406 { 406 {
407 devices_list *device; 407 devices_list *device;
408 char *addr = NULL, line[60], *p = NULL; 408 char *addr = NULL, line[60], *p = NULL;
409 FILE *fp; 409 FILE *fp;
410 int temp, rc; 410 int temp, rc;
411 #ifdef HAVE_WIRINGPI_H
411 time_t now; 412 time_t now;
413 #endif
412 414
413 syslog(LOG_NOTICE, "Thread my_devices_loop started"); 415 syslog(LOG_NOTICE, "Thread my_devices_loop started");
414 416
415 rc = piHiPri(10); 417 #ifdef HAVE_WIRINGPI_H
416 syslog(LOG_NOTICE, "Thread my_devices_loop piHiPri(10) rc=%d", rc); 418 if ((rc = piHiPri(10)))
419 syslog(LOG_NOTICE, "my_devices_loop: piHiPri(10) rc=%d", rc);
420 #endif
417 421
418 /* 422 /*
419 * Loop forever until the external shutdown variable is set. 423 * Loop forever until the external shutdown variable is set.
420 */ 424 */
421 for (;;) { 425 for (;;) {

mercurial