Skip to content

Commit 5c41e21

Browse files
authored
Merge pull request #170 from airbornemint/ble_gatt
BLEGATT_ATT_MTU_MAX should be BLE_GATT_ATT_MTU_MAX
2 parents 5cfdb28 + 6c22010 commit 5c41e21

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libraries/Bluefruit52Lib/src/bluefruit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ void adafruit_ble_task(void* arg)
796796
(void) arg;
797797

798798
#if SD_VER >= 500
799-
uint8_t * ev_buf = (uint8_t*) rtos_malloc(BLE_EVT_LEN_MAX(BLEGATT_ATT_MTU_MAX));
799+
uint8_t * ev_buf = (uint8_t*) rtos_malloc(BLE_EVT_LEN_MAX(BLE_GATT_ATT_MTU_MAX));
800800
#endif
801801

802802
while (1)
@@ -812,7 +812,7 @@ void adafruit_ble_task(void* arg)
812812
__ALIGN(4) uint8_t ev_buf[ sizeof(ble_evt_t) + (BLE_GATT_ATT_MTU_DEFAULT) ];
813813
uint16_t ev_len = sizeof(ev_buf);
814814
#else
815-
uint16_t ev_len = BLE_EVT_LEN_MAX(BLEGATT_ATT_MTU_MAX);
815+
uint16_t ev_len = BLE_EVT_LEN_MAX(BLE_GATT_ATT_MTU_MAX);
816816
#endif
817817

818818
// Get BLE Event

libraries/Bluefruit52Lib/src/bluefruit.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343

4444
/* Note changing these parameters will affect APP_RAM_BASE
4545
* --> need to update RAM region in linker file
46-
* - BLEGATT_ATT_MTU_MAX from 23 (default) to 247
46+
* - BLE_GATT_ATT_MTU_MAX from 23 (default) to 247
4747
*/
4848

4949
#if SD_VER < 500
50-
#define BLEGATT_ATT_MTU_MAX BLE_GATT_ATT_MTU_DEFAULT
50+
#define BLE_GATT_ATT_MTU_MAX BLE_GATT_ATT_MTU_DEFAULT
5151
#else
52-
#define BLEGATT_ATT_MTU_MAX 247
52+
#define BLE_GATT_ATT_MTU_MAX 247
5353
#endif
5454

5555
#define BLE_PRPH_MAX_CONN 1

0 commit comments

Comments
 (0)