summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight.c b/src/backlight.c
index 72e6bfe7..bb53abae 100644
--- a/src/backlight.c
+++ b/src/backlight.c
@@ -402,7 +402,7 @@ int backlight_open(struct backlight *b, char *iface)
goto err;
level = __backlight_read(iface, "brightness");
- if (level)
+ if (level < 0)
goto err;
if (!__backlight_direct_init(b, iface) &&