1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

cpu/esp32: set stdout/stderr to be non-buffering

This commit is contained in:
Gunar Schorcht 2022-01-20 19:10:12 +01:00
parent e1c6306bf4
commit 1d20f88bb0

View File

@ -336,6 +336,10 @@ static NORETURN void IRAM system_init (void)
/* initialize stdio */
stdio_init();
/* disable buffering in stdio */
setvbuf(_stdout_r(_REENT), NULL, _IONBF, 0);
setvbuf(_stderr_r(_REENT), NULL, _IONBF, 0);
/* trigger static peripheral initialization */
periph_init();