Skip to content

Commit

Permalink
Use utility option --f1 to force EDID reads to use the normal I2C path
Browse files Browse the repository at this point in the history
  • Loading branch information
rockowitz committed Dec 19, 2020
1 parent 4416d1e commit c2c9d0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app_ddcutil/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ report_utility_options(Parsed_Cmd * parsed_cmd, int depth)
{
if (parsed_cmd->output_level >= DDCA_OL_VV) {
rpt_label(depth, "Utility Options:");
REPORT_FLAG_OPTION(1, "Unused");
REPORT_FLAG_OPTION(1, "EDID read uses I2C layer");
REPORT_FLAG_OPTION(2, "Unused");
REPORT_FLAG_OPTION(3, "Unused");
REPORT_FLAG_OPTION(4, "Read strategy tests");
Expand Down Expand Up @@ -293,6 +293,11 @@ int main(int argc, char *argv[]) {

ddc_set_verify_setvcp(parsed_cmd->flags & CMD_FLAG_VERIFY);

if (parsed_cmd->flags & CMD_FLAG_F1) {
fprintf(stdout, "EDID reads will use normal I2C calls\n");
EDID_Read_Uses_I2C_Layer = true;
}

// HACK FOR TESTING
if (parsed_cmd->flags & CMD_FLAG_F6) {
fprintf(stdout, "Setting i2c_force_bus\n");
Expand Down

0 comments on commit c2c9d0a

Please sign in to comment.