microbit: Defined an initial GATT table size of 768 bytes.

Reduced GATT table size by 1K. 768 bytes is sufficient to hold the basic
micro:bit BLE services (Device Information, DFU, event service). The
additional 1K normally held by SoftDevice can then be reused for application
heap.
This commit is contained in:
Joe Finney 2016-01-04 23:47:27 +00:00
parent ce50b67bb4
commit e38a6b7e5f
1 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,8 @@ error_t btle_init(void)
static const bool IS_SRVC_CHANGED_CHARACT_PRESENT = true;
ble_enable_params_t enableParams = {
.gatts_enable_params = {
.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT
.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT,
.attr_tab_size = 768
}
};
if (sd_ble_enable(&enableParams) != NRF_SUCCESS) {