diff options
author | volker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2007-06-20 13:41:42 +0000 |
---|---|---|
committer | volker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2007-06-20 13:41:42 +0000 |
commit | a67cbe4975c81ecab2d1e2ed087d410534439c00 (patch) | |
tree | 2ee8cd76573fe534ebc3e027a297912ed1f41835 | |
parent | 0802e1b84e35ccd55158189fe0d892fd9dfdbf07 (diff) | |
download | lcd4linux-a67cbe4975c81ecab2d1e2ed087d410534439c00.tar.gz |
maximum value for brightness is 8
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@808 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r-- | drv_Cwlinux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drv_Cwlinux.c b/drv_Cwlinux.c index 35a7a20..bb495ef 100644 --- a/drv_Cwlinux.c +++ b/drv_Cwlinux.c @@ -236,8 +236,8 @@ static int drv_CW_brightness(int brightness) if (brightness < 0) brightness = 0; - if (brightness > 255) - brightness = 255; + if (brightness > 8) + brightness = 8; Brightness = brightness; switch (Brightness) { |