aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorreinelt <>2003-09-10 08:37:09 +0000
committerreinelt <>2003-09-10 08:37:09 +0000
commit8f51f05f631c06c4f8f7c87ac0047827210f44ad (patch)
tree9e81985db96e3c0295a2786f8e7fb24a22c0a872 /lcd4linux.c
parent5f008ad8827a4f00f11e4ec79c211b15b6af7c75 (diff)
downloadlcd4linux-8f51f05f631c06c4f8f7c87ac0047827210f44ad.tar.gz
[lcd4linux @ 2003-09-10 08:37:09 by reinelt]
icons: reorganized tick_* again...
Diffstat (limited to 'lcd4linux.c')
-rw-r--r--lcd4linux.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index a95d148..65d6c81 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -1,4 +1,4 @@
-/* $Id: lcd4linux.c,v 1.46 2003/09/09 06:54:43 reinelt Exp $
+/* $Id: lcd4linux.c,v 1.47 2003/09/10 08:37:09 reinelt Exp $
*
* LCD4Linux
*
@@ -20,6 +20,9 @@
*
*
* $Log: lcd4linux.c,v $
+ * Revision 1.47 2003/09/10 08:37:09 reinelt
+ * icons: reorganized tick_* again...
+ *
* Revision 1.46 2003/09/09 06:54:43 reinelt
* new function 'cfg_number()'
*
@@ -242,14 +245,13 @@
#define PIDFILE "/var/run/lcd4linux.pid"
-char *release="LCD4Linux " VERSION " (c) 2003 Michael Reinelt <reinelt@eunet.at>";
-char **my_argv;
-int tick;
-int got_signal=0;
+static char *release="LCD4Linux " VERSION " (c) 2003 Michael Reinelt <reinelt@eunet.at>";
+static char **my_argv;
+static int got_signal=0;
+int tick, tack;
extern char* output;
-
static void usage(void)
{
printf ("%s\n", release);
@@ -468,11 +470,8 @@ int main (int argc, char *argv[])
signal(SIGQUIT, handler);
signal(SIGTERM, handler);
- if (cfg_number("Tick", 100, 1, 1000000, &tick)<0) {
- pid_exit(PIDFILE);
- exit (1);
- }
-
+
+ // process_init sets global vars tick, tack
process_init();
lcd_clear(1);
@@ -485,7 +484,7 @@ int main (int argc, char *argv[])
while (got_signal==0) {
process ();
- usleep(tick*1000);
+ usleep(tack*1000);
}
debug ("leaving main loop");