From 2a4fa6478ce12e51d0d9acdf759779209374d426 Mon Sep 17 00:00:00 2001 From: crasbe Date: Thu, 13 Feb 2025 13:41:13 +0100 Subject: [PATCH] sys/stdio_nimble: set default to retain buffers on connection --- sys/include/stdio_nimble.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/include/stdio_nimble.h b/sys/include/stdio_nimble.h index b44cb4a1e20c8..1df35c1d841bb 100644 --- a/sys/include/stdio_nimble.h +++ b/sys/include/stdio_nimble.h @@ -40,10 +40,10 @@ * * **NOTE:** These values must be a power of two! * - * By default, stdin and stdout buffers are cleared on a connect event. To keep the - * content add the following to your makefile: + * By default, stdin and stdout buffers are not cleared on a connect event. + * To discard the buffer content add the following line to your makefile: * ``` - * CFLAGS += -DCONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT=0 + * CFLAGS += -DCONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT=1 * ``` * * For automatic bluetooth advertising a module is provided: *nimble_autoadv*. @@ -171,10 +171,10 @@ extern "C" { /** * @brief Whether to clear the buffers when establishing a new connection or - * not. Defaults to true. + * not. Defaults to false. */ #ifndef CONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT -#define CONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT 1 +#define CONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT 0 #endif /**