Merge pull request #1670 from dasdgw/i2c_fix

soc/software: fix i2c_write
This commit is contained in:
enjoy-digital 2023-04-11 16:34:18 +02:00 committed by GitHub
commit 748899aa49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ int i2c_send_init_cmds(void)
data[0] = i2c_cmd->init_table[(i*2) + 1] & 0xff;
}
if (!i2c_write(i2c_cmd->i2c_addr, addr, data, len))
if (!i2c_write(i2c_cmd->i2c_addr, addr, data, len, 1))
printf("Error during write at address 0x%04x on i2c dev %d\n",
addr, current_i2c_dev);
}