]> git.openpandora.org Git - pandora-libraries.git/commitdiff
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 1de2be9a115253bc96f3f0b9b1586ed0f7feae13..2e79385a9c5e9035c1c69bc353d75f5da42ff3ba 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 f8df2601b209697e31015475f72dda5ac90ee9ee..2619004559da99919f473f2f6f98a8025e281322 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