Skip to content
Snippets Groups Projects
Commit f9af495a authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

Merge pull request #3124 from jfischer-phytec-iot/fix@hdc1000

drivers/hdc1000: fix hdc1000_startmeasure function
parents 26195bf2 d317ea2d
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,7 @@ int hdc1000_startmeasure(hdc1000_t *dev)
* to the address 0x00 (HDC1000_TEMPERATURE).
* Conversion Time is 6.50ms by 14 bit resolution.
*/
if (i2c_write_bytes(dev->i2c, dev->addr, HDC1000_TEMPERATURE, 1) != 1) {
if (i2c_write_byte(dev->i2c, dev->addr, HDC1000_TEMPERATURE) != 1) {
i2c_release(dev->i2c);
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment