thermferm/panel.c

changeset 229
5f93b61adb34
parent 228
11655e7124c5
child 238
a0f1deb65889
--- a/thermferm/panel.c	Wed Aug 13 19:14:01 2014 +0200
+++ b/thermferm/panel.c	Wed Aug 13 19:40:01 2014 +0200
@@ -28,6 +28,24 @@
 #ifdef HAVE_WIRINGPI_H
 
 
+/*
+ * 10 Milliseconds counts for a key to be short or long pressed.
+ */
+#define PRESS_NORMAL    5
+#define PRESS_LONG      200
+
+/*
+ * LCD timeout in seconds
+ */
+#define LCD_SLEEP       120
+
+/*
+ * Menu timeout in seconds
+ */
+#define MENU_TIMEOUT    60
+
+
+
 extern int		my_shutdown;
 extern int		debug;
 extern int		setupmenu;
@@ -41,6 +59,8 @@
 int			menutimer = 0;
 
 
+int keypressed(void);
+
 
 /*
  * Check for a key. Return last pressed key or none.
@@ -174,9 +194,6 @@
     }
 
     syslog(LOG_NOTICE, "Thread my_panel_loop stopped");
-    if (debug)
-	fprintf(stdout, "Thread my_panel_loop stopped\n");
-
     return 0;
 }
 

mercurial