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
tirimbino
Daniel Hillenbrand 11 years ago
parent 731cd20c21
commit f3bf842bd6
  1. 4
      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);

Loading…
Cancel
Save