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

Does not work for back to back reads or writes #4

Open
RussellGallop opened this issue Nov 11, 2011 · 1 comment
Open

Does not work for back to back reads or writes #4

RussellGallop opened this issue Nov 11, 2011 · 1 comment

Comments

@RussellGallop
Copy link
Contributor

while(1) {
i2c_data.data_len = 1;
if (i2c_master_rx(0x2, 0x1, i2c_data, i2c_master) != 1) {
printf("Failed");
} else {
printf("Succeeded");
}
// wait for 1 second
}

Only works every 4 attempts.

@djpwilk
Copy link
Member

djpwilk commented Jan 20, 2012

Note that this issue pertains only to the module_i2c, not to the other i2c components (e.g. i2c_simple, i2c_singleport

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

No branches or pull requests

2 participants