File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 40
40
*
41
41
* **NOTE:** These values must be a power of two!
42
42
*
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:
45
45
* ```
46
- * CFLAGS += -DCONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT=0
46
+ * CFLAGS += -DCONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT=1
47
47
* ```
48
48
*
49
49
* For automatic bluetooth advertising a module is provided: *nimble_autoadv*.
@@ -171,10 +171,10 @@ extern "C" {
171
171
172
172
/**
173
173
* @brief Whether to clear the buffers when establishing a new connection or
174
- * not. Defaults to true .
174
+ * not. Defaults to false .
175
175
*/
176
176
#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
178
178
#endif
179
179
180
180
/**
You can’t perform that action at this time.
0 commit comments