diff options
author | dianlujitao <dianlujitao@lineageos.org> | 2020-01-29 22:45:42 +0800 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-04-30 00:48:54 +0300 |
commit | 02b93d0d5c8e03aa8b415f672ed600aafeafc5ef (patch) | |
tree | f92c1b2f183e467c458fbe66df84a13fb945fbe5 /light | |
parent | c76f291cd000a679058e4a591bef52ac420aafff (diff) |
sdm660-common: lights: red -> white
Change-Id: I097c542f95434d85b8c041b156dfd81952c64164
Diffstat (limited to 'light')
-rw-r--r-- | light/Light.cpp | 2 | ||||
-rw-r--r-- | light/android.hardware.light@2.0-service.xiaomi_sdm660.rc | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/light/Light.cpp b/light/Light.cpp index 35ddfd1..e6d9349 100644 --- a/light/Light.cpp +++ b/light/Light.cpp @@ -31,7 +31,7 @@ namespace implementation { #define LEDS "/sys/class/leds/" #define LCD_LED LEDS "lcd-backlight/" #define BRIGHTNESS "brightness" -#define WHITE LEDS "red/" +#define WHITE LEDS "white/" #define BLINK "blink" #define DUTY_PCTS "duty_pcts" #define PAUSE_HI "pause_hi" diff --git a/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc b/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc index 2d2f47c..7dac2e6 100644 --- a/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc +++ b/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc @@ -1,20 +1,20 @@ on boot # Notification LED - chown system system /sys/class/leds/red/blink - chown system system /sys/class/leds/red/brightness - chown system system /sys/class/leds/red/duty_pcts - chown system system /sys/class/leds/red/pause_hi - chown system system /sys/class/leds/red/pause_lo - chown system system /sys/class/leds/red/ramp_step_ms - chown system system /sys/class/leds/red/start_idx + chown system system /sys/class/leds/white/blink + chown system system /sys/class/leds/white/brightness + chown system system /sys/class/leds/white/duty_pcts + chown system system /sys/class/leds/white/pause_hi + chown system system /sys/class/leds/white/pause_lo + chown system system /sys/class/leds/white/ramp_step_ms + chown system system /sys/class/leds/white/start_idx - chmod 660 /sys/class/leds/red/blink - chmod 660 /sys/class/leds/red/brightness - chmod 660 /sys/class/leds/red/duty_pcts - chmod 660 /sys/class/leds/red/pause_hi - chmod 660 /sys/class/leds/red/pause_lo - chmod 660 /sys/class/leds/red/ramp_step_ms - chmod 660 /sys/class/leds/red/start_idx + chmod 660 /sys/class/leds/white/blink + chmod 660 /sys/class/leds/white/brightness + chmod 660 /sys/class/leds/white/duty_pcts + chmod 660 /sys/class/leds/white/pause_hi + chmod 660 /sys/class/leds/white/pause_lo + chmod 660 /sys/class/leds/white/ramp_step_ms + chmod 660 /sys/class/leds/white/start_idx service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.xiaomi_sdm660 class hal |