We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab2dd4 commit a378d2aCopy full SHA for a378d2a
src/detection/brightness/brightness_bsd.c
@@ -34,7 +34,7 @@ const char* ffDetectBrightness(FF_MAYBE_UNUSED FFBrightnessOptions* options, FFl
34
brightness->current = status.brightness;
35
36
struct backlight_info info;
37
- if(ioctl(blfd, BACKLIGHTGETINFO, &info) < 0)
+ if(ioctl(blfd, BACKLIGHTGETINFO, &info) == 0)
38
ffStrbufAppendS(&brightness->name, info.name);
39
else
40
ffStrbufAppendS(&brightness->name, path + strlen("/dev/backlight/"));
0 commit comments