thermferm/sensors.c

changeset 66
805f1d285acd
parent 51
a03b6dac5398
child 74
879bd09e2b96
--- a/thermferm/sensors.c	Thu Jun 19 15:49:29 2014 +0200
+++ b/thermferm/sensors.c	Fri Jun 20 17:42:36 2014 +0200
@@ -22,16 +22,17 @@
 
 #include "thermferm.h"
 
-#ifdef HAVE_WIRINGPI_H
-
 
 extern bool		debug;
 extern sys_config	Config;
 extern int		my_shutdown;
 
 
-
+#ifdef HAVE_WIRINGPI_H
 PI_THREAD (my_sensors_loop)
+#else
+int my_sensors_loop(void)
+#endif
 {
     w1_therm		*tmp1, *old1;
     char		*device, line[60], *p = NULL;
@@ -46,6 +47,7 @@
      * Loop forever until the external shutdown variable is set.
      */
     for (;;) {
+
     	/*
     	 * Here send our 1-wire sensors values
     	 */
@@ -131,4 +133,3 @@
 
 
 
-#endif

mercurial