mirror of https://github.com/ARMmbed/mbed-os.git
Nordic BLE: Fix stack event size
Read By group type response can return 4 descriptor discovered when the remote server have 4 descriptors with a 16 bit UUID. The handle, UUID pair get stored in a ble_gattc_desc_t that is 20 bytes long. This PR increase buffer size to handle this use case.pull/5739/head
parent
d33b02818a
commit
31053273c2
|
@ -57,7 +57,7 @@
|
|||
#include "app_error.h"
|
||||
#include "app_util.h"
|
||||
|
||||
#define BLE_STACK_EVT_MSG_BUF_SIZE (sizeof(ble_evt_t) + (GATT_MTU_SIZE_DEFAULT)) /**< Size of BLE event message buffer. This will be provided to the SoftDevice while fetching an event. */
|
||||
#define BLE_STACK_EVT_MSG_BUF_SIZE (sizeof(ble_evt_t) + (3 * sizeof(ble_gattc_attr_info_t)) + (GATT_MTU_SIZE_DEFAULT)) /**< Size of BLE event message buffer. This will be provided to the SoftDevice while fetching an event. */
|
||||
#define BLE_STACK_HANDLER_SCHED_EVT_SIZE 0 /**< The size of the scheduler event used by SoftDevice handler when passing BLE events using the @ref app_scheduler. */
|
||||
|
||||
/**@brief Application stack event handler type. */
|
||||
|
|
Loading…
Reference in New Issue