diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-08-19 04:28:41 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-08-19 04:28:41 +0000 |
commit | b72c7b98553f670f53b42cd98e6156852d8d5203 (patch) | |
tree | d22d58c1c4f5ab30ce203e3ad6d00282c1e817b7 /MatrixOrbital.c | |
parent | 946a5ef8dd7de4c8900dc52d5597b6ded3764394 (diff) | |
download | lcd4linux-b72c7b98553f670f53b42cd98e6156852d8d5203.tar.gz |
[lcd4linux @ 2003-08-19 04:28:41 by reinelt]
more Icon stuff, minor glitches fixed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@223 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'MatrixOrbital.c')
-rw-r--r-- | MatrixOrbital.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/MatrixOrbital.c b/MatrixOrbital.c index a900b27..68198b3 100644 --- a/MatrixOrbital.c +++ b/MatrixOrbital.c @@ -1,4 +1,4 @@ -/* $Id: MatrixOrbital.c,v 1.30 2003/08/17 16:37:39 reinelt Exp $ +/* $Id: MatrixOrbital.c,v 1.31 2003/08/19 04:28:41 reinelt Exp $ * * driver for Matrix Orbital serial display modules * @@ -20,6 +20,9 @@ * * * $Log: MatrixOrbital.c,v $ + * Revision 1.31 2003/08/19 04:28:41 reinelt + * more Icon stuff, minor glitches fixed + * * Revision 1.30 2003/08/17 16:37:39 reinelt * more icon framework * @@ -346,8 +349,10 @@ static int MO_init (LCD *Self, int protocol) if (Device==-1) return -1; s=cfg_get("Icons", "0"); - if ((Icons=strtol(s, &e, 0))==0 || *e!='\0' || (Icons<0 && Icons>8)) { - error ("MatrixOrbital: bad Iconss '%s' in %s, must be between 0 and 8", s, cfg_file()); + Icons=strtol(s, &e, 0); + if (*e!='\0' || Icons<0 || Icons>8) { + debug ("Icons=%d e=<%s>", Icons, e); + error ("MatrixOrbital: bad Icons '%s' in %s, must be between 0 and 8", s, cfg_file()); return -1; } if (Icons>0) { |