mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
maximum value for brightness is 8
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@808 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user