increase attr table size for 840 to from 0xC00 to 0x1000
This commit is contained in:
2 files changed
+7
-10
No files matched your search
@@ -122,10 +122,7 @@ static void nrf_error_cb(uint32_t id, uint32_t pc, uint32_t info)
|
||||
LOG_LV1("SD Err", "assert at %s : %d", assert_info->p_file_name, assert_info->line_num);
|
||||
}
|
||||
|
||||
while(1)
|
||||
{
|
||||
yield();
|
||||
}
|
||||
while(1) yield();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -189,11 +186,6 @@ AdafruitBluefruit::AdafruitBluefruit(void)
|
||||
.kdist_own = { .enc = 1, .id = 1},
|
||||
.kdist_peer = { .enc = 1, .id = 1},
|
||||
});
|
||||
|
||||
COMMENT_OUT(
|
||||
_auth_type = BLE_GAP_AUTH_KEY_TYPE_NONE;
|
||||
varclr(_pin);
|
||||
)
|
||||
}
|
||||
|
||||
void AdafruitBluefruit::configServiceChanged(bool changed)
|
||||
|
||||
@@ -36,7 +36,12 @@
|
||||
#define BLE_GATT_ATT_MTU_MAX 247
|
||||
#define BLE_MAX_CONNECTION 20 // SD support up to 20 connections
|
||||
|
||||
#define CFG_SD_ATTR_TABLE_SIZE 0xC00
|
||||
// Allocate more memory for GATT table for 840
|
||||
#ifdef NRF52840_XXAA
|
||||
#define CFG_SD_ATTR_TABLE_SIZE 0x1000
|
||||
#else
|
||||
#define CFG_SD_ATTR_TABLE_SIZE 0xC00
|
||||
#endif
|
||||
|
||||
#include "BLEUuid.h"
|
||||
#include "BLEAdvertising.h"
|
||||
|
||||
Reference in new issue
Block a user