op_bright_down.sh & op_bright_up.sh: Changed brightness so that values
authorMichael Mrozek <EvilDragon@openpandora.de>
Wed, 8 Sep 2010 00:20:11 +0000 (02:20 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Wed, 8 Sep 2010 00:20:11 +0000 (02:20 +0200)
of 1 and 2 are not possible.

testdata/scripts/op_bright_down.sh
testdata/scripts/op_bright_up.sh

index 1de2be9..2e79385 100755 (executable)
@@ -12,7 +12,7 @@ elif [ "$cur" -gt "0" ]; then
    new=$(($cur-1))
 fi
 
-if [ "$new" -lt "0" ]; then
+if [ "$new" -lt "3" ]; then
    new=0
 fi
 
index f8df260..2619004 100755 (executable)
@@ -11,11 +11,13 @@ elif [ "$cur" -gt "5" ]; then
 elif [ "$cur" -gt "0" ]; then 
    new=$(($cur+1))
 elif [ "$cur" -eq "0" ]; then 
-   new=$(($cur+1))
+   new=3
 fi
 
 if [ "$new" -gt "54" ]; then
    new=54
 fi
 
+
+
 echo $new > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness