aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drv_Cwlinux.c4
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) {