aboutsummaryrefslogtreecommitdiffstats
path: root/drv_MatrixOrbital.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-01-22 12:44:41 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-01-22 12:44:41 +0000
commit4b6f7fb1f11af97b369feb39aa4c4ac16252045a (patch)
tree8db3f73c3adba45845dc66023c1d04f2966f50c7 /drv_MatrixOrbital.c
parentae6d2a0a265f41e9c9773d61dcf16da3653b674e (diff)
downloadlcd4linux-4b6f7fb1f11af97b369feb39aa4c4ac16252045a.tar.gz
[lcd4linux @ 2005-01-22 12:44:41 by reinelt]
MatrixOrbital backlight micro-fix git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@510 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_MatrixOrbital.c')
-rw-r--r--drv_MatrixOrbital.c9
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;