aboutsummaryrefslogtreecommitdiffstats
path: root/USBLCD.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 /USBLCD.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 'USBLCD.c')
-rw-r--r--USBLCD.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/USBLCD.c b/USBLCD.c
index 17eec79..2cee0df 100644
--- a/USBLCD.c
+++ b/USBLCD.c
@@ -1,4 +1,4 @@
-/* $Id: USBLCD.c,v 1.7 2002/08/19 09:11:34 reinelt Exp $
+/* $Id: USBLCD.c,v 1.8 2003/02/22 07:53:10 reinelt Exp $
*
* Driver for USBLCD ( see http://www.usblcd.de )
* This Driver is based on HD44780.c
@@ -22,6 +22,9 @@
*
*
* $Log: USBLCD.c,v $
+ * Revision 1.8 2003/02/22 07:53:10 reinelt
+ * cfg_get(key,defval)
+ *
* Revision 1.7 2002/08/19 09:11:34 reinelt
* changed HD44780 to use generic bar functions
*
@@ -212,7 +215,7 @@ int USBLCD_init (LCD *Self)
free(Port);
Port=NULL;
}
- if ((port=cfg_get("Port"))==NULL || *port=='\0') {
+ if ((port=cfg_get("Port",NULL))==NULL || *port=='\0') {
error ("USBLCD: no 'Port' entry in %s", cfg_file());
return -1;
}
@@ -225,7 +228,7 @@ int USBLCD_init (LCD *Self)
debug ("using device %s ", Port);
- s=cfg_get("Size");
+ s=cfg_get("Size",NULL);
if (s==NULL || *s=='\0') {
error ("USBLCD: no 'Size' entry in %s", cfg_file());
return -1;