diff --git a/drivers/bluetooth/hci/h4.c b/drivers/bluetooth/hci/h4.c index fbc3d8af5b7..754c88dded4 100644 --- a/drivers/bluetooth/hci/h4.c +++ b/drivers/bluetooth/hci/h4.c @@ -157,7 +157,7 @@ static void reset_rx(void) rx.discardable = false; } -static struct net_buf *get_rx(int timeout) +static struct net_buf *get_rx(k_timeout_t timeout) { BT_DBG("type 0x%02x, evt 0x%02x", rx.type, rx.evt.evt); diff --git a/drivers/bluetooth/hci/ipm_stm32wb.c b/drivers/bluetooth/hci/ipm_stm32wb.c index f092f95811d..5e1731f8ebf 100644 --- a/drivers/bluetooth/hci/ipm_stm32wb.c +++ b/drivers/bluetooth/hci/ipm_stm32wb.c @@ -228,7 +228,7 @@ void shci_cmd_resp_release(uint32_t flag) void shci_cmd_resp_wait(uint32_t timeout) { - k_sem_take(&ble_sys_wait_cmd_rsp, timeout); + k_sem_take(&ble_sys_wait_cmd_rsp, K_MSEC(timeout)); } void ipcc_reset(void)