Skip to content

Conversation

jnohlgard
Copy link
Member

Contribution description

Adapt drivers/hih6130 to new i2c API

Issues/PRs references

#6577

@jnohlgard jnohlgard added Area: drivers Area: Device drivers TF: I2C Marks issues and PRs related to the work of the I²C rework task force labels Jun 1, 2018
@@ -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)) {
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, will fix

@dylad
Copy link
Member

dylad commented Jul 4, 2018

@smlng are you happy here ?

@dylad dylad added the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Jul 4, 2018
@@ -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{
Copy link
Member

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 ☹️

Copy link
Member Author

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

@dylad
Copy link
Member

dylad commented Jul 5, 2018

@smlng can we squash and go ?

@smlng
Copy link
Member

smlng commented Jul 5, 2018

sure, please squash

@smlng
Copy link
Member

smlng commented Jul 9, 2018

@gebart ping, please squash

@aabadie
Copy link
Contributor

aabadie commented Jul 9, 2018

@smlng @gebart, I allowed myself to rebase and squash this PR. Hope this is fine.

@aabadie aabadie removed the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Jul 9, 2018
@aabadie
Copy link
Contributor

aabadie commented Jul 9, 2018

All green, let's go!

@aabadie aabadie merged commit 79c83eb into RIOT-OS:new_i2c_if Jul 9, 2018
basilfx pushed a commit to basilfx/RIOT that referenced this pull request Jul 10, 2018
drivers/hih6130: adapt to new i2c API
dylad pushed a commit to dylad/RIOT that referenced this pull request Jul 10, 2018
drivers/hih6130: adapt to new i2c API
dylad pushed a commit that referenced this pull request Jul 11, 2018
drivers/hih6130: adapt to new i2c API
@jnohlgard jnohlgard deleted the pr/i2c-hih6130 branch August 14, 2018 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers TF: I2C Marks issues and PRs related to the work of the I²C rework task force
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants