summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Keith <javelinanddart@gmail.com>2017-06-02 17:52:14 -0500
committerPaul Keith <javelinanddart@gmail.com>2017-06-02 21:23:51 -0500
commitab9abf68b71b62d930170f229455ce9cb9a9151b (patch)
treed2b0fd8b6224de0a7d3237f303dca6e5dd288d55
parentec8569b990d1bee28df745b1d0eb757bd0c30fcd (diff)
downloadandroid_hardware_samsung-ab9abf68b71b62d930170f229455ce9cb9a9151b.tar.gz
android_hardware_samsung-ab9abf68b71b62d930170f229455ce9cb9a9151b.tar.bz2
android_hardware_samsung-ab9abf68b71b62d930170f229455ce9cb9a9151b.zip
liblights: Fix variable button brightness code
* Because we're using #ifdef in set_light_buttons(), defining VAR_BUTTON_BRIGHTNESS to anything, including 0, results in the button brightness code being enabled * That results in broken touchkey backlight for devices that don't override the samsung_lights header, or defined this macro to 0 in their device's samsung_lights header * Comment out the macro to correct this logic Change-Id: Icf554b0deac975f729f1a70e517341dae74f3657
-rw-r--r--liblights/include/samsung_lights.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/liblights/include/samsung_lights.h b/liblights/include/samsung_lights.h
index f9392c1..fce1308 100644
--- a/liblights/include/samsung_lights.h
+++ b/liblights/include/samsung_lights.h
@@ -30,8 +30,8 @@
#define BUTTON_BRIGHTNESS_NODE "/sys/class/sec/sec_touchkey/brightness"
#define LED_BLINK_NODE "/sys/class/sec/led/led_blink"
-// Set to 1 to enable variable button brightness
-#define VAR_BUTTON_BRIGHTNESS 0
+// Uncomment to enable variable button brightness
+//#define VAR_BUTTON_BRIGHTNESS 1
/*
* Brightness adjustment factors