-
Notifications
You must be signed in to change notification settings - Fork 2.1k
adcxx1c: adapt to new i2c API #9210
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
Conversation
404415b
to
37d96d4
Compare
drivers/adcxx1c/adcxx1c.c
Outdated
@@ -79,7 +71,7 @@ int adcxx1c_read_raw(const adcxx1c_t *dev, int16_t *raw) | |||
int status; | |||
|
|||
i2c_acquire(I2C); | |||
status = i2c_read_regs(I2C, ADDR, ADCXX1C_CONV_RES_ADDR, buf, 2); | |||
status = i2c_read_regs(I2C, ADDR, ADCXX1C_CONV_RES_ADDR, buf, 2, 0); | |||
i2c_release(I2C); | |||
if (status < 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the function does not return the read bytes anymore, but 0
on success
@vincent-d do you think you can addressed the comments soon ? |
37d96d4
to
2ad23fd
Compare
Sorry for the delay, my last 2 weeks have been busy. Comment addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, if @smlng agrees, we can merge it.
please squash |
2ad23fd
to
bcd6619
Compare
Squashed |
Thanks @vincent-d ! |
adcxx1c: adapt to new i2c API
adcxx1c: adapt to new i2c API
Contribution description
Adapt adcxx1c driver to new i2c API.
Issues/PRs references
#6577