From b6dd247d8ae45694367c16be7fae65f084a18961 Mon Sep 17 00:00:00 2001 From: reinelt Date: Fri, 25 Mar 2005 15:44:43 +0000 Subject: [lcd4linux @ 2005-03-25 15:44:43 by reinelt] HD44780 Backlight fixed (thanks to geronet) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@518 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_HD44780.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drv_HD44780.c b/drv_HD44780.c index 14ee92a..a778731 100644 --- a/drv_HD44780.c +++ b/drv_HD44780.c @@ -1,4 +1,4 @@ -/* $Id: drv_HD44780.c,v 1.44 2005/01/29 09:30:56 reinelt Exp $ +/* $Id: drv_HD44780.c,v 1.45 2005/03/25 15:44:43 reinelt Exp $ * * new style driver for HD44780-based displays * @@ -29,6 +29,9 @@ * * * $Log: drv_HD44780.c,v $ + * Revision 1.45 2005/03/25 15:44:43 reinelt + * HD44780 Backlight fixed (thanks to geronet) + * * Revision 1.44 2005/01/29 09:30:56 reinelt * minor HD44780 cleanups * @@ -951,7 +954,7 @@ static int drv_HD_backlight (int backlight) if (backlight < 0) backlight = 0; if (backlight > 1) backlight = 1; - drv_generic_parport_control (SIGNAL_BACKLIGHT, backlight); + drv_generic_parport_control (SIGNAL_BACKLIGHT, backlight ? SIGNAL_BACKLIGHT : 0); return backlight; } -- cgit v1.2.3