thermferm/devices.c

changeset 187
3c8bf18fdf42
parent 185
4f34271cf1e7
child 202
5d09ca728809
--- a/thermferm/devices.c	Tue Aug 05 21:46:49 2014 +0200
+++ b/thermferm/devices.c	Tue Aug 05 22:29:22 2014 +0200
@@ -36,9 +36,11 @@
 int device_out(char *uuid, int value)
 {
     devices_list	*device;
-    char		buf[40];
+    time_t		now;
+#ifdef HAVE_WIRINGPI_H
     int			i, rc;
-    time_t		now;
+    char		buf[40];
+#endif
 
     if (uuid == NULL)
 	return 0;

mercurial