diff options
| author | Jim Mussared | 2019-10-14 15:39:40 +1100 |
|---|---|---|
| committer | Damien George | 2019-10-15 17:20:25 +1100 |
| commit | 418f12c5f50b6642aee0193adaa792c962226683 (patch) | |
| tree | fdfaec988323809508942edd68c11a3f11b04ec1 /extmod | |
| parent | f562f94e1c4ba3dd62a30b778ca6e88474fbc8e8 (diff) | |
extmod/modbluetooth: Increase maximum connections from 1 to 4.
This avoids a confusing ENOMEM raised from gap_advertise if there is
currently an active connection. This refers to the static connection
buffer pre-allocated by Nimble (nothing to do with MicroPython heap
memory).
Diffstat (limited to 'extmod')
| -rw-r--r-- | extmod/nimble/syscfg/syscfg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/nimble/syscfg/syscfg.h b/extmod/nimble/syscfg/syscfg.h index 0d3acf9a7..485e5be3c 100644 --- a/extmod/nimble/syscfg/syscfg.h +++ b/extmod/nimble/syscfg/syscfg.h @@ -40,7 +40,7 @@ int nimble_sprintf(char *str, const char *fmt, ...); /*** nimble */ #define MYNEWT_VAL_BLE_EXT_ADV (0) #define MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE (31) -#define MYNEWT_VAL_BLE_MAX_CONNECTIONS (1) +#define MYNEWT_VAL_BLE_MAX_CONNECTIONS (4) #define MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES (0) #define MYNEWT_VAL_BLE_ROLE_BROADCASTER (1) #define MYNEWT_VAL_BLE_ROLE_CENTRAL (1) |
