Skip to content

Commit 3b726de

Browse files
HoZHelnashif
authored andcommitted
Bluetooth: Host: Fix HCI command timeout usage
Fix Bluetooth initialization problem caused by PR#72090 for at least ST boards that are using BlueNRG BLE modules. For more information, please refer to issue #74528. Signed-off-by: Ali Hozhabri <[email protected]>
1 parent 9d761a1 commit 3b726de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/hci_core.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4634,7 +4634,7 @@ int bt_configure_data_path(uint8_t dir, uint8_t id, uint8_t vs_config_len,
46344634
static bool process_pending_cmd(k_timeout_t timeout)
46354635
{
46364636
if (!k_fifo_is_empty(&bt_dev.cmd_tx_queue)) {
4637-
if (k_sem_take(&bt_dev.ncmd_sem, K_NO_WAIT) == 0) {
4637+
if (k_sem_take(&bt_dev.ncmd_sem, timeout) == 0) {
46384638
hci_core_send_cmd();
46394639
return true;
46404640
}

0 commit comments

Comments
 (0)