Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change lpc17 i2c driver to accept any size of command in MasterCmdRead #201

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

gustavosr8
Copy link
Contributor

No description provided.

@gustavosr8 gustavosr8 self-assigned this Feb 15, 2024
@gustavosr8 gustavosr8 force-pushed the i2c-writeread-driver branch 3 times, most recently from afeba5f to 70b234f Compare February 15, 2024 16:34
@@ -570,7 +570,7 @@ int cdce906_read_cfg(uint8_t chip_id, cdce906_cfg* cfg)
int ret = 0;

if (i2c_take_by_chipid(chip_id, &i2c_addr, &i2c_id, (TickType_t)10)) {
i2c_trans = xI2CMasterWriteRead(i2c_id, i2c_addr, 0x00, data, sizeof(data));
i2c_trans = xI2CMasterWriteRead(i2c_id, i2c_addr, 0x00, 1, data, sizeof(data));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to replace the literal 0x00 with a pointer to a local variable set to 0x00 here.

modules/sensors/ina3221.c Outdated Show resolved Hide resolved
@augustofg
Copy link
Member

👍

@augustofg augustofg merged commit 028b253 into devel Feb 16, 2024
6 checks passed
@augustofg augustofg deleted the i2c-writeread-driver branch February 16, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

i2c lpcopen library can't address correctly 16 bit addresses on read command
2 participants