From b0b7787da2ff81a0439fa3f31674c782daec6ead Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Tue, 5 Dec 2017 14:48:32 +0100 Subject: [PATCH] nimble/host: Increase HCI command timeout 1 sec is not enough sometimes, let's make it 2 secs - the same value is used in e.g. Linux Kernel. X-Original-Commit: 185e2961e7271227d4b35db3b4e427edd2d6cd66 --- nimble/host/src/ble_hs_hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/src/ble_hs_hci.c b/nimble/host/src/ble_hs_hci.c index af07fce5e..72bbeb38d 100644 --- a/nimble/host/src/ble_hs_hci.c +++ b/nimble/host/src/ble_hs_hci.c @@ -28,7 +28,7 @@ #include "ble_hs_dbg_priv.h" #include "ble_monitor_priv.h" -#define BLE_HCI_CMD_TIMEOUT (OS_TICKS_PER_SEC) +#define BLE_HCI_CMD_TIMEOUT ((OS_TICKS_PER_SEC) * 2) static struct os_mutex ble_hs_hci_mutex; static struct os_sem ble_hs_hci_sem;