thermferm/thermferm.c

changeset 213
2317b8d644fa
parent 209
c5b1dfd83e81
child 214
37d1eb0e1d66
equal deleted inserted replaced
212:a76cbe676bf1 213:2317b8d644fa
14 * WITHOUT ANY WARRANTY; without even the implied warranty of 14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details. 16 * General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with EC-65K; see the file COPYING. If not, write to the Free 19 * along with ThermFerm; see the file COPYING. If not, write to the Free
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 *****************************************************************************/ 21 *****************************************************************************/
22 22
23 #include "lock.h" 23 #include "lock.h"
24 #include "logger.h" 24 #include "logger.h"
30 #include "lcd-buffer.h" 30 #include "lcd-buffer.h"
31 #include "panel.h" 31 #include "panel.h"
32 #include "futil.h" 32 #include "futil.h"
33 #include "xutil.h" 33 #include "xutil.h"
34 34
35
36 //int tempA = 80;
37 //int tempB = 80;
38 35
39 int my_shutdown = FALSE; 36 int my_shutdown = FALSE;
40 static pid_t pgrp, mypid; 37 static pid_t pgrp, mypid;
41 38
42 extern int debug; 39 extern int debug;
266 } 263 }
267 264
268 rc = devices_detect(); 265 rc = devices_detect();
269 if (rc) { 266 if (rc) {
270 syslog(LOG_NOTICE, "Detected %d new devices", rc); 267 syslog(LOG_NOTICE, "Detected %d new devices", rc);
271 if (debug)
272 fprintf(stdout, "Detected %d new devices\n", rc);
273 wrconfig(); 268 wrconfig();
274 } 269 }
275 270
276 #ifdef HAVE_WIRINGPI_H 271 #ifdef HAVE_WIRINGPI_H
277 rc = piThreadCreate(my_devices_loop); 272 rc = piThreadCreate(my_devices_loop);

mercurial