Skip to content

Commit

Permalink
ddc_add_display_by_businfo(): assign display number 1 higher than any…
Browse files Browse the repository at this point in the history
… already used

was temporarily assigning dispno 99, which libddcutil used only to check
that display ref not invalid
  • Loading branch information
rockowitz committed Dec 16, 2024
1 parent 74382bb commit 7241b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ddc/ddc_displays.c
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ Display_Ref * ddc_add_display_by_businfo(I2C_Bus_Info * businfo) {
if (businfo->edid) {
dref = create_bus_display_ref(businfo->busno);
// dref->dispno = DISPNO_INVALID; // -1, guilty until proven innocent
dref->dispno = 99; // dispno not used in libddcutil except to indicate invalid
dref->dispno = ++dispno_max; // dispno not used in libddcutil except to indicate invalid
dref->pedid = copy_parsed_edid(businfo->edid);
dref->mmid = mmk_new(
dref->pedid->mfg_id,
Expand Down

0 comments on commit 7241b1e

Please sign in to comment.