Merge branch 'bugfix/allow_buffering_on_stdout' into 'master'

protocol_examples_common: keep buffering enabled on stdout

See merge request espressif/esp-idf!8793
This commit is contained in:
Mahavir Jain
2020-05-20 10:51:29 +08:00

View File

@@ -17,7 +17,6 @@ esp_err_t example_configure_stdin_stdout(void)
{
// Initialize VFS & UART so we can use std::cout/cin
setvbuf(stdin, NULL, _IONBF, 0);
setvbuf(stdout, NULL, _IONBF, 0);
/* Install UART driver for interrupt-driven reads and writes */
ESP_ERROR_CHECK( uart_driver_install( (uart_port_t)CONFIG_ESP_CONSOLE_UART_NUM,
256, 0, 0, NULL, 0) );