-
Notifications
You must be signed in to change notification settings - Fork 2.1k
drivers/hih6130: adapt to new i2c API #9270
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
drivers/hih6130/hih6130.c
Outdated
@@ -84,7 +84,7 @@ static inline int hih6130_get_humidity_temperature_raw(const hih6130_t *dev, uin | |||
|
|||
i2c_acquire(dev->i2c); | |||
|
|||
if (i2c_read_bytes(dev->i2c, dev->addr, &buf[0], sizeof(buf)) != sizeof(buf)) { | |||
if (i2c_read_bytes(dev->i2c, dev->addr, &buf[0], sizeof(buf), 0) != sizeof(buf)) { |
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.
should != 0
, does not return read bytes anymore
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.
Oops, will fix
@smlng are you happy here ? |
drivers/hih6130/hih6130.c
Outdated
@@ -84,7 +84,7 @@ static inline int hih6130_get_humidity_temperature_raw(const hih6130_t *dev, uin | |||
|
|||
i2c_acquire(dev->i2c); | |||
|
|||
if (i2c_read_bytes(dev->i2c, dev->addr, &buf[0], sizeof(buf)) != sizeof(buf)) { | |||
if (i2c_read_bytes(dev->i2c, dev->addr, &buf[0], sizeof(buf), 0) < 0{ |
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.
now its missing closing parentheses
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.
Ah crap, I edited on my phone through the web interface
@smlng can we squash and go ? |
sure, please squash |
@gebart ping, please squash |
All green, let's go! |
drivers/hih6130: adapt to new i2c API
drivers/hih6130: adapt to new i2c API
drivers/hih6130: adapt to new i2c API
Contribution description
Adapt drivers/hih6130 to new i2c API
Issues/PRs references
#6577