diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-08-24 05:17:58 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-08-24 05:17:58 +0000 |
commit | 019808ae3222f7dc718b8a66d999aabac9f633ee (patch) | |
tree | 072381f83d0966b48fb518505e693e326d9b72ce /HD44780.c | |
parent | 86a3dd8e35847debfdce7c65e52b8ffd8913689a (diff) | |
download | lcd4linux-019808ae3222f7dc718b8a66d999aabac9f633ee.tar.gz |
[lcd4linux @ 2003-08-24 05:17:58 by reinelt]
liblcd4linux patch from Patrick Schemitz
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@228 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | HD44780.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: HD44780.c,v 1.35 2003/08/22 03:45:08 reinelt Exp $ +/* $Id: HD44780.c,v 1.36 2003/08/24 05:17:58 reinelt Exp $ * * driver for display modules based on the HD44780 chip * @@ -27,6 +27,9 @@ * * * $Log: HD44780.c,v $ + * Revision 1.36 2003/08/24 05:17:58 reinelt + * liblcd4linux patch from Patrick Schemitz + * * Revision 1.35 2003/08/22 03:45:08 reinelt * bug in parallel port code fixed, more icons stuff * @@ -401,7 +404,7 @@ int HD_init (LCD *Self) s=cfg_get("Size",NULL); if (s==NULL || *s=='\0') { - error ("HD44780: no 'Size' entry in %s", cfg_file()); + error ("HD44780: no 'Size' entry in %s", cfg_source()); return -1; } if (sscanf(s,"%dx%d",&cols,&rows)!=2 || rows<1 || cols<1) { @@ -416,7 +419,7 @@ int HD_init (LCD *Self) else { gpos=strtol(s, &e, 0); if (*e!='\0' || gpos<0 || gpos>8) { - error ("HD44780: bad GPOs '%s' in %s", s, cfg_file()); + error ("HD44780: bad GPOs '%s' in %s", s, cfg_source()); return -1; } } @@ -424,7 +427,7 @@ int HD_init (LCD *Self) s=cfg_get("Controllers", "1"); Controllers=strtol(s, &e, 0); if (*e!='\0' || Controllers<1 || Controllers>2) { - error ("HD44780: bad Controllers '%s' in %s, should be '1' or '2'", s, cfg_file()); + error ("HD44780: bad Controllers '%s' in %s, should be '1' or '2'", s, cfg_source()); return -1; } info ("wiring: using display with %d controllers", Controllers); @@ -448,7 +451,7 @@ int HD_init (LCD *Self) s=cfg_get("Bits", "8"); Bits=strtol(s, &e, 0); if (*e!='\0' || (Bits!=4 && Bits!=8)) { - error ("HD44780: bad Bits '%s' in %s, should be '4' or '8'", s, cfg_file()); + error ("HD44780: bad Bits '%s' in %s, should be '4' or '8'", s, cfg_source()); return -1; } info ("wiring: using %d bit mode", Bits); |