diff options
author | reinelt <> | 2005-01-22 12:44:41 +0000 |
---|---|---|
committer | reinelt <> | 2005-01-22 12:44:41 +0000 |
commit | 8f661b82c70ded73c02fa0b3491f8e6998fe7e51 (patch) | |
tree | 8db3f73c3adba45845dc66023c1d04f2966f50c7 | |
parent | 5c96185f5d3077e315ed18ca0f774a229732be7f (diff) | |
download | lcd4linux-8f661b82c70ded73c02fa0b3491f8e6998fe7e51.tar.gz |
[lcd4linux @ 2005-01-22 12:44:41 by reinelt]
MatrixOrbital backlight micro-fix
Diffstat (limited to '')
-rw-r--r-- | drv_MatrixOrbital.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drv_MatrixOrbital.c b/drv_MatrixOrbital.c index 2bc6864..d89ec0f 100644 --- a/drv_MatrixOrbital.c +++ b/drv_MatrixOrbital.c @@ -1,4 +1,4 @@ -/* $Id: drv_MatrixOrbital.c,v 1.37 2005/01/18 06:30:23 reinelt Exp $ +/* $Id: drv_MatrixOrbital.c,v 1.38 2005/01/22 12:44:41 reinelt Exp $ * * new style driver for Matrix Orbital serial display modules * @@ -23,6 +23,9 @@ * * * $Log: drv_MatrixOrbital.c,v $ + * Revision 1.38 2005/01/22 12:44:41 reinelt + * MatrixOrbital backlight micro-fix + * * Revision 1.37 2005/01/18 06:30:23 reinelt * added (C) to all copyright statements * @@ -336,7 +339,7 @@ static int drv_MO_backlight (int backlight) if (backlight > 255) backlight = 255; Backlight = backlight; - if (backlight < 0) { + if (backlight <= 0) { /* backlight off */ drv_generic_serial_write ("\376F", 2); } else { @@ -357,7 +360,7 @@ static int drv_MO_gpo (int num, int val) if (num < 1) num = 1; if (num > 6) num = 6; - /* -1 is used to query the current PWM */ + /* -1 is used to query the current GPO */ if (val == -1) return GPO[num-1]; if (val < 0) val = 0; |