aboutsummaryrefslogtreecommitdiffstats
path: root/HD44780.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-02-22 07:53:10 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-02-22 07:53:10 +0000
commited1760b6b3194d68cdf6edbae01079e9efbc2e09 (patch)
tree9a0596fed56b4985e15b7d677c43c0bda80fbabb /HD44780.c
parentd302e66cd7b633e557bcb1504149ff3a7b39198c (diff)
downloadlcd4linux-ed1760b6b3194d68cdf6edbae01079e9efbc2e09.tar.gz
[lcd4linux @ 2003-02-22 07:53:09 by reinelt]
cfg_get(key,defval) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@183 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'HD44780.c')
-rw-r--r--HD44780.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/HD44780.c b/HD44780.c
index 6818ed6..e5e254e 100644
--- a/HD44780.c
+++ b/HD44780.c
@@ -1,4 +1,4 @@
-/* $Id: HD44780.c,v 1.25 2002/08/19 09:11:34 reinelt Exp $
+/* $Id: HD44780.c,v 1.26 2003/02/22 07:53:09 reinelt Exp $
*
* driver for display modules based on the HD44780 chip
*
@@ -20,6 +20,9 @@
*
*
* $Log: HD44780.c,v $
+ * Revision 1.26 2003/02/22 07:53:09 reinelt
+ * cfg_get(key,defval)
+ *
* Revision 1.25 2002/08/19 09:11:34 reinelt
* changed HD44780 to use generic bar functions
*
@@ -415,7 +418,7 @@ int HD_init (LCD *Self)
int rows=-1, cols=-1, gpos=-1;
char *s, *e;
- s=cfg_get ("Port");
+ s=cfg_get ("Port",NULL);
if (s==NULL || *s=='\0') {
error ("HD44780: no 'Port' entry in %s", cfg_file());
return -1;
@@ -432,7 +435,7 @@ int HD_init (LCD *Self)
}
#ifdef USE_OLD_UDELAY
- s=cfg_get ("Delay");
+ s=cfg_get ("Delay",NULL);
if (s==NULL || *s=='\0') {
error ("HD44780: no 'Delay' entry in %s", cfg_file());
return -1;
@@ -443,7 +446,7 @@ int HD_init (LCD *Self)
}
#endif
- s=cfg_get("Size");
+ s=cfg_get("Size",NULL);
if (s==NULL || *s=='\0') {
error ("HD44780: no 'Size' entry in %s", cfg_file());
return -1;
@@ -453,7 +456,7 @@ int HD_init (LCD *Self)
return -1;
}
- s=cfg_get ("GPOs");
+ s=cfg_get ("GPOs",NULL);
if (s==NULL) {
gpos=0;
}