From d317ea2d3ad0a1e3681360c5adb47390d571f513 Mon Sep 17 00:00:00 2001 From: Johann F Date: Sat, 30 May 2015 19:57:35 +0200 Subject: [PATCH] drivers/hdc1000: fix hdc1000_startmeasure function Change i2c_write_bytes to i2c_write_byte because it was seriously wrong at this point. --- drivers/hdc1000/hdc1000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hdc1000/hdc1000.c b/drivers/hdc1000/hdc1000.c index cc8bef2a6c..0ca07446af 100644 --- a/drivers/hdc1000/hdc1000.c +++ b/drivers/hdc1000/hdc1000.c @@ -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; }