From a67cbe4975c81ecab2d1e2ed087d410534439c00 Mon Sep 17 00:00:00 2001 From: volker Date: Wed, 20 Jun 2007 13:41:42 +0000 Subject: maximum value for brightness is 8 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@808 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_Cwlinux.c | 4 ++-- 1 file 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) { -- cgit v1.2.3