aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/flashlight.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/flashlight.c b/src/flashlight.c
index 08ad884..a5d7f97 100644
--- a/src/flashlight.c
+++ b/src/flashlight.c
@@ -27,8 +27,12 @@
#define QCOM_ENABLE "255"
#define QCOM_DISABLE "0"
-const size_t qcom_sysfs_size = 2;
-const char* const qcom_sysfs[] = {"/sys/class/leds/torch-light/brightness", "/sys/class/leds/led:flash_torch/brightness"};
+const size_t qcom_sysfs_size = 5;
+const char* const qcom_sysfs[] = {"/sys/class/leds/torch-light/brightness",
+ "/sys/class/leds/led:flash_torch/brightness",
+ "/sys/class/leds/flashlight/brightness",
+ "/sys/class/leds/torch-light0/brightness",
+ "/sys/class/leds/torch-light1/brightness"};
char* flash_sysfs_path = NULL;
gboolean activated = 0;