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:
fewtarius 2024-01-31 13:30:42 +00:00
parent ef23bed60b
commit 657f301452
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -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)