Skip to content

Commit

Permalink
Brightness (Linux): fix ddcutil 2.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Mar 1, 2024
1 parent c397015 commit 14d3bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detection/brightness/brightness_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static const char* detectWithDdcci(FFBrightnessOptions* options, FFlist* result)
{
FF_SUPPRESS_IO();
// Ref: https://github.com/rockowitz/ddcutil/issues/344
if (ffddca_init("--disable-watch-displays", -1 /*DDCA_SYSLOG_NOT_SET*/, 1 /*DDCA_INIT_OPTIONS_DISABLE_CONFIG_FILE*/) < 0)
if (ffddca_init(NULL, -1 /*DDCA_SYSLOG_NOT_SET*/, 1 /*DDCA_INIT_OPTIONS_DISABLE_CONFIG_FILE*/) < 0)
return "ddca_init() failed";
}
else
Expand Down

0 comments on commit 14d3bd8

Please sign in to comment.