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 <benjamin.walsh@windriver.com>
This commit is contained in:
parent
50f7032fb4
commit
e863a77849
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue