change HCI_RX_BUF_QUEUE_SIZE back to 4

This commit is contained in:
hathach 2019-01-31 22:50:42 +07:00
parent 7ec0ff51f0
commit 981a6976e2
2 changed files with 1 additions and 9 deletions

View File

@ -887,20 +887,12 @@ static void on_ble_evt(ble_evt_t * p_ble_evt)
case BLE_GAP_EVT_PHY_UPDATE_REQUEST: case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
{ {
// ble_gap_phys_t* req_phy = &evt->evt.gap_evt.params.phy_update_request.peer_preferred_phys;
// Tell SoftDevice to choose PHY automatically // Tell SoftDevice to choose PHY automatically
ble_gap_phys_t phy = { BLE_GAP_PHY_AUTO, BLE_GAP_PHY_AUTO }; ble_gap_phys_t phy = { BLE_GAP_PHY_AUTO, BLE_GAP_PHY_AUTO };
(void) sd_ble_gap_phy_update(m_conn_handle, &phy); (void) sd_ble_gap_phy_update(m_conn_handle, &phy);
} }
break; break;
case BLE_GAP_EVT_PHY_UPDATE:
{
// ble_gap_evt_phy_update_t* active_phy = &evt->evt.gap_evt.params.phy_update;
}
break;
case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST: case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
{ {
uint16_t att_mtu = MIN(p_ble_evt->evt.gatts_evt.params.exchange_mtu_request.client_rx_mtu, BLEGATT_ATT_MTU_MAX); uint16_t att_mtu = MIN(p_ble_evt->evt.gatts_evt.params.exchange_mtu_request.client_rx_mtu, BLEGATT_ATT_MTU_MAX);

View File

@ -66,7 +66,7 @@
#define HCI_MEM_POOL_ENABLED 1 #define HCI_MEM_POOL_ENABLED 1
#define HCI_TX_BUF_SIZE 600 #define HCI_TX_BUF_SIZE 600
#define HCI_RX_BUF_SIZE 600 #define HCI_RX_BUF_SIZE 600
#define HCI_RX_BUF_QUEUE_SIZE 8 #define HCI_RX_BUF_QUEUE_SIZE 4
//========================================================== //==========================================================
// <e> UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver // <e> UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver