Reset the power led back to its previous state after the charger is dis connected rather than force to green.
This commit is contained in:
parent
ef23bed60b
commit
657f301452
1 changed files with 3 additions and 3 deletions
|
@ -41,11 +41,11 @@ case ${1} in
|
|||
set_setting led.color ${1}
|
||||
;;
|
||||
discharging)
|
||||
if [ ! "${LED_STATUS}" = "off" ]
|
||||
if [ -n "${LED_STATUS}" ]
|
||||
then
|
||||
ledcontrol ${LED_STATUS}
|
||||
else
|
||||
led_green
|
||||
else
|
||||
led_off
|
||||
fi
|
||||
;;
|
||||
charging)
|
||||
|
|
Loading…
Reference in a new issue