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
This commit is contained in:
tomsci 2018-10-07 20:40:49 +01:00 committed by Arnim Läuger
parent 45c63a8236
commit 35c0f15805
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ void app_main (void)
#endif
console_init (&cfg, input_task);
setvbuf(stdout, NULL, _IONBF, 0);
nodemcu_init ();