From e863a77849bddbcc79b58326f3188ab3930dfcfe Mon Sep 17 00:00:00 2001 From: Benjamin Walsh Date: Tue, 20 Dec 2016 15:41:26 -0500 Subject: [PATCH] drivers: fix timeout in hp206 It receives a timeout in ms, but was still converting it to ticks, while the unified kernel API takes a value in ms. Change-Id: I8ff7f44090716385764fe4b2a087043a2e0d70af Signed-off-by: Benjamin Walsh --- drivers/sensor/hp206c/hp206c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sensor/hp206c/hp206c.c b/drivers/sensor/hp206c/hp206c.c index ca870476398..52e2ae0143d 100644 --- a/drivers/sensor/hp206c/hp206c.c +++ b/drivers/sensor/hp206c/hp206c.c @@ -181,7 +181,7 @@ static int hp206c_wait_dev_ready(struct device *dev, uint32_t timeout_ms) uint8_t int_src; #ifdef CONFIG_NANO_TIMERS - k_timer_start(&hp206c->tmr, MSEC(timeout_ms), 0); + k_timer_start(&hp206c->tmr, timeout_ms, 0); k_timer_status_sync(&hp206c->tmr); #else k_busy_wait(timeout_ms * 1000);