summaryrefslogtreecommitdiffstats
path: root/liblights/lights.c
diff options
context:
space:
mode:
Diffstat (limited to 'liblights/lights.c')
-rwxr-xr-xliblights/lights.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/liblights/lights.c b/liblights/lights.c
index 4c17faf..a7fba8b 100755
--- a/liblights/lights.c
+++ b/liblights/lights.c
@@ -99,6 +99,7 @@ set_light_backlight(struct light_device_t* dev,
pthread_mutex_lock(&g_lock);
err = write_int(PANEL_FILE, brightness);
err = write_int(BUTTON_FILE, brightness > 0 ? 1 : 2);
+
pthread_mutex_unlock(&g_lock);
return err;