diff --git a/apps/bttester/src/uart_pipe.c b/apps/bttester/src/uart_pipe.c index 971acdc6d..e774570c9 100644 --- a/apps/bttester/src/uart_pipe.c +++ b/apps/bttester/src/uart_pipe.c @@ -40,12 +40,12 @@ struct uart_pipe_ring { static struct uart_dev *uart_dev; static struct uart_pipe_ring cr_tx; -static uint8_t cr_tx_buf[2048]; +static uint8_t cr_tx_buf[MYNEWT_VAL(BTTESTER_BTP_DATA_SIZE_MAX)]; typedef void (*console_write_char)(struct uart_dev*, uint8_t); static console_write_char write_char_cb; static struct uart_pipe_ring cr_rx; -static uint8_t cr_rx_buf[2048]; +static uint8_t cr_rx_buf[MYNEWT_VAL(BTTESTER_BTP_DATA_SIZE_MAX)]; static volatile bool uart_console_rx_stalled; struct os_event rx_ev; diff --git a/apps/bttester/syscfg.yml b/apps/bttester/syscfg.yml index c420e0398..7b4b81352 100644 --- a/apps/bttester/syscfg.yml +++ b/apps/bttester/syscfg.yml @@ -21,11 +21,11 @@ syscfg.defs: BTTESTER_PIPE_UART: description: 'Set communication pipe to UART' - value: 0 + value: 1 BTTESTER_PIPE_RTT: description: 'Set communication pipe to RTT' - value: 1 + value: 0 BTTESTER_RTT_BUFFER_NAME: description: Bttester rtt pipe buffer name @@ -53,7 +53,7 @@ syscfg.defs: BTTESTER_DEBUG: description: Enable debug logging - value: 0 + value: 1 syscfg.vals: OS_MAIN_STACK_SIZE: 12444