Skip to content

Commit 9e891c0

Browse files
committed
sys/stdio_nimble: set default to retain buffers on connection
1 parent 6b3f0d2 commit 9e891c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sys/include/stdio_nimble.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
*
4141
* **NOTE:** These values must be a power of two!
4242
*
43-
* By default, stdin and stdout buffers are cleared on a connect event. To keep the
44-
* content add the following to your makefile:
43+
* By default, stdin and stdout buffers are not cleared on a connect event.
44+
* To discard the buffer content add the following line to your makefile:
4545
* ```
46-
* CFLAGS += -DCONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT=0
46+
* CFLAGS += -DCONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT=1
4747
* ```
4848
*
4949
* For automatic bluetooth advertising a module is provided: *nimble_autoadv*.
@@ -171,10 +171,10 @@ extern "C" {
171171

172172
/**
173173
* @brief Whether to clear the buffers when establishing a new connection or
174-
* not. Defaults to true.
174+
* not. Defaults to false.
175175
*/
176176
#ifndef CONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT
177-
#define CONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT 1
177+
#define CONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT 0
178178
#endif
179179

180180
/**

0 commit comments

Comments
 (0)