RK3399: Adjust battery level led indicator

This commit is contained in:
brooksytech 2023-12-17 22:20:49 +00:00
parent 742064f12c
commit b6a384c371
No known key found for this signature in database

View file

@ -41,7 +41,7 @@ do
else
if [ ${STAT} == "Discharging" ]
then
if (( ${CAP} <= 10 ))
if (( ${CAP} <= 5 ))
then
for ctr in $(seq 1 1 5)
do
@ -51,10 +51,10 @@ do
sleep .5
done
continue
elif (( ${CAP} <= 20 ))
elif (( ${CAP} <= 10 ))
then
set_led red
elif (( ${CAP} <= 30 ))
elif (( ${CAP} <= 20 ))
then
set_led orange
else