Skip to content

Commit

Permalink
sys/stdio_nimble: set default to retain buffers on connection
Browse files Browse the repository at this point in the history
  • Loading branch information
crasbe committed Feb 13, 2025
1 parent 3908dbd commit 2a4fa64
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sys/include/stdio_nimble.h
Original file line number Diff line number Diff line change
Expand Up @@ -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*.
Expand Down Expand Up @@ -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

/**
Expand Down

0 comments on commit 2a4fa64

Please sign in to comment.