From f28003f1779e7e560ccc70e90d88b376208f6cd6 Mon Sep 17 00:00:00 2001 From: ltoetsch Date: Thu, 15 Mar 2001 15:49:23 +0000 Subject: [lcd4linux @ 2001-03-15 15:49:22 by ltoetsch] fixed compile HD44780.c, cosmetics git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@125 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- HD44780.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'HD44780.c') diff --git a/HD44780.c b/HD44780.c index 0832d57..a92d051 100644 --- a/HD44780.c +++ b/HD44780.c @@ -1,4 +1,4 @@ -/* $Id: HD44780.c,v 1.18 2001/03/15 09:47:13 reinelt Exp $ +/* $Id: HD44780.c,v 1.19 2001/03/15 15:49:22 ltoetsch Exp $ * * driver for display modules based on the HD44780 chip * @@ -20,6 +20,9 @@ * * * $Log: HD44780.c,v $ + * Revision 1.19 2001/03/15 15:49:22 ltoetsch + * fixed compile HD44780.c, cosmetics + * * Revision 1.18 2001/03/15 09:47:13 reinelt * * some fixes to ppdef @@ -182,7 +185,10 @@ static LCD Lcd; static unsigned short Port=0; static char *PPdev=NULL; + +#ifdef WITH_PPDEV static int PPfd=-1; +#endif static char Txt[4][40]; static BAR Bar[4][40]; @@ -754,6 +760,7 @@ int HD_flush (void) int HD_quit (void) { +#ifdef WITH_PPDEV if (PPdev) { debug ("closing ppdev %s", PPdev); if (ioctl(PPfd, PPRELEASE)) { @@ -763,7 +770,9 @@ int HD_quit (void) error ("close(%s) failed: %s", PPdev, strerror(errno)); return -1; } - } else { + } else +#endif + { debug ("closing raw port 0x%x", Port); if (ioperm(Port, 3, 0)!=0) { error ("HD44780: ioperm(0x%x) failed: %s", Port, strerror(errno)); -- cgit v1.2.3