# HG changeset patch # User Michiel Broek # Date 1408106612 -7200 # Node ID d3fe84ece3492d5c179e5f3dfc2da0e34fcb1ea4 # Parent 4ba138737bf480ce907504477dabf669bd5f2f61 Fixed conditionals on systems without wiringPi. diff -r 4ba138737bf4 -r d3fe84ece349 thermferm/devices.c --- a/thermferm/devices.c Fri Aug 15 14:38:32 2014 +0200 +++ b/thermferm/devices.c Fri Aug 15 14:43:32 2014 +0200 @@ -408,12 +408,16 @@ char *addr = NULL, line[60], *p = NULL; FILE *fp; int temp, rc; +#ifdef HAVE_WIRINGPI_H time_t now; +#endif syslog(LOG_NOTICE, "Thread my_devices_loop started"); - rc = piHiPri(10); - syslog(LOG_NOTICE, "Thread my_devices_loop piHiPri(10) rc=%d", rc); +#ifdef HAVE_WIRINGPI_H + if ((rc = piHiPri(10))) + syslog(LOG_NOTICE, "my_devices_loop: piHiPri(10) rc=%d", rc); +#endif /* * Loop forever until the external shutdown variable is set.