aboutsummaryrefslogtreecommitdiffstats
path: root/processor.c
diff options
context:
space:
mode:
authorreinelt <>2000-04-15 11:13:54 +0000
committerreinelt <>2000-04-15 11:13:54 +0000
commit9995cf7420a59acfc3550f28a9e14fa8b08fffe5 (patch)
treeae8a6348cdb49be80e7b2b39979259a74c923ce3 /processor.c
parent7a34aa1940680a265c074fe1c4f329eb0669d63c (diff)
downloadlcd4linux-9995cf7420a59acfc3550f28a9e14fa8b08fffe5.tar.gz
[lcd4linux @ 2000-04-15 11:13:54 by reinelt]
added '-d' (debugging) switch added several debugging messages removed config entry 'Delay' for HD44780 driver delay loop for HD44780 will be calibrated automatically
Diffstat (limited to 'processor.c')
-rw-r--r--processor.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/processor.c b/processor.c
index f388813..02b2775 100644
--- a/processor.c
+++ b/processor.c
@@ -1,4 +1,4 @@
-/* $Id: processor.c,v 1.3 2000/04/01 16:22:38 reinelt Exp $
+/* $Id: processor.c,v 1.4 2000/04/15 11:13:54 reinelt Exp $
*
* main data processing
*
@@ -20,6 +20,13 @@
*
*
* $Log: processor.c,v $
+ * Revision 1.4 2000/04/15 11:13:54 reinelt
+ *
+ * added '-d' (debugging) switch
+ * added several debugging messages
+ * removed config entry 'Delay' for HD44780 driver
+ * delay loop for HD44780 will be calibrated automatically
+ *
* Revision 1.3 2000/04/01 16:22:38 reinelt
*
* bug that caused a segfault in processor.c fixed (thanks to herp)
@@ -52,6 +59,7 @@
#include <stdio.h>
#include <string.h>
+#include "debug.h"
#include "cfg.h"
#include "system.h"
#include "isdn.h"
@@ -379,7 +387,7 @@ void process_init (void)
load.overload=atof(cfg_get("overload")?:"2.0");
lcd_query (&rows, &cols, &xres, &yres, &supported_bars);
-
+ debug ("%d rows, %d columns, %dx%d pixels\n", rows, cols, xres, yres);
for (i=1; i<=rows; i++) {
snprintf (buffer, sizeof(buffer), "row%d", i);
row[i]=strdup(parse(cfg_get(buffer)?:"", supported_bars, token_usage));