Fix pine indicator leds paths for latest pmOS setup and add white (flash)

This commit is contained in:
Miles Alan 2020-05-12 21:36:34 -05:00
parent 8e5763a281
commit b37138c845
2 changed files with 17 additions and 6 deletions

View file

@ -19,7 +19,7 @@ static char * brightnessfile = "/sys/devices/platform/backlight/backlight/backli
void updatepineled(int red, int brightness) {
sprintf(
pineledcommand,
"sh -c 'echo %d > /sys/devices/platform/leds/leds/pinephone:%s:user/brightness'",
"sh -c 'echo %d > /sys/class/leds/%s:indicator/brightness'",
brightness,
red ? "red" : "blue"
);