Skip to content

Commit

Permalink
i2c_check_open_bus_alive(): delete assert() no longer valid
Browse files Browse the repository at this point in the history
also:
- i2c_detect_x37()  increase max_tries count from 1 to 2
  (had been reduced for testing)
  • Loading branch information
rockowitz committed Oct 25, 2024
1 parent 2c5d2fa commit 09c3770
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/i2c/i2c_bus_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ i2c_detect_x37(int fd) {
// - Dell P2715Q does not respond to single byte read, but does respond to
// a write (7/2018), so this function checks both
Status_Errno_DDC rc = 0;
int max_tries = 1; // ***TEMP*** 3;
int max_tries = 2; // ***TEMP*** 3;
bool use_file_io = false;
int poll_wait_millisec = 400;
char * s = (use_file_io) ? "i2c" : "ioctl";
Expand Down Expand Up @@ -670,7 +670,6 @@ Error_Info * i2c_check_open_bus_alive(Display_Handle * dh) {
assert( (businfo->flags & I2C_BUS_EXISTS) &&
(businfo->flags & I2C_BUS_PROBED)
);
assert(sys_drm_connectors);

Error_Info * result = NULL;
bool edid_exists = false;
Expand Down

0 comments on commit 09c3770

Please sign in to comment.