Commit 35c0f158 authored by tomsci's avatar tomsci Committed by Arnim Läuger
Browse files

Set stdout to unbuffered (#2508)

* Set stdout to unbuffered

This fixes issue #2507 esp32 serial console doesn't show output until
enter pressed.

* Moved setvbuf call to app_main immediately after console_init
parent 45c63a82
...@@ -165,6 +165,7 @@ void app_main (void) ...@@ -165,6 +165,7 @@ void app_main (void)
#endif #endif
console_init (&cfg, input_task); console_init (&cfg, input_task);
setvbuf(stdout, NULL, _IONBF, 0);
nodemcu_init (); nodemcu_init ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment