nimble/monitor: Make console out buffer size configurable

X-Original-Commit: a2b060c0cd83c7267eea89c95b0b0e770966c1d4
This commit is contained in:
Andrzej Kaczmarek
2017-09-01 11:05:48 +02:00
parent 71263573c4
commit f0e51cc5f5
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ ble_monitor_log(int level, const char *fmt, ...)
int
ble_monitor_out(int c)
{
static char buf[128];
static char buf[MYNEWT_VAL(BLE_MONITOR_CONSOLE_BUFFER_SIZE)];
static size_t len;
if (c != '\n' && len < sizeof(buf) - 1) {
+5
View File
@@ -72,6 +72,11 @@ syscfg.defs:
space in RTT buffer (e.g. there is no reader connected). If disabled,
monitor will simply block waiting for RTT to free space in buffer.
value: 1
BLE_MONITOR_CONSOLE_BUFFER_SIZE:
description: >
Size of internal buffer for console output. Any line exceeding this
length value will be split.
value: 128
# L2CAP settings.
BLE_L2CAP_MAX_CHANS: