diff options
author | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2013-08-21 20:49:48 +0200 |
---|---|---|
committer | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2013-08-21 20:49:48 +0200 |
commit | f3bf842bd6640b58c4e6dfd918c9715c50efeba2 (patch) | |
tree | 21a28a6a64cbec328555e26f7314dc153e44182c | |
parent | 731cd20c21959f0b997f3f69c1bcdf879d246391 (diff) | |
download | android_hardware_samsung-f3bf842bd6640b58c4e6dfd918c9715c50efeba2.tar.gz android_hardware_samsung-f3bf842bd6640b58c4e6dfd918c9715c50efeba2.tar.bz2 android_hardware_samsung-f3bf842bd6640b58c4e6dfd918c9715c50efeba2.zip |
liblights: exynos4210: fix button off value
since we're writing to the command interface the correct values are:
1 - on
2 - off
Change-Id: I4e61b0eedd1dcfba32319b26cd9e29202f66fcaa
-rw-r--r-- | exynos4/exynos4210/liblights/lights.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exynos4/exynos4210/liblights/lights.c b/exynos4/exynos4210/liblights/lights.c index 2d22b7c..7be7d7b 100644 --- a/exynos4/exynos4210/liblights/lights.c +++ b/exynos4/exynos4210/liblights/lights.c @@ -262,10 +262,10 @@ set_light_buttons(struct light_device_t* dev, pthread_mutex_lock(&g_lock); if (brightness > 0) { ALOGD("set_light_buttons on=%d\n", g_enable_touchlight ? 1 : 0); - err = write_int(BUTTON_FILE, g_enable_touchlight ? 1 : 0); + err = write_int(BUTTON_FILE, g_enable_touchlight ? 1 : 2); } else { ALOGD("set_light_buttons off\n"); - err = write_int(BUTTON_FILE, 0); + err = write_int(BUTTON_FILE, 2); } pthread_mutex_unlock(&g_lock); |