Fix pine indicator leds paths for latest pmOS setup and add white (flash)
This commit is contained in:
parent
8e5763a281
commit
b37138c845
2 changed files with 17 additions and 6 deletions
|
@ -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"
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue