diff --git a/ports/arm/atomport.c b/ports/arm/atomport.c index 3154fa7..1383a8a 100644 --- a/ports/arm/atomport.c +++ b/ports/arm/atomport.c @@ -72,12 +72,13 @@ static void thread_shell (void) /* Get the TCB of the thread being started */ curr_tcb = atomCurrentContext(); - /** - * Open a stdout file descriptor so that the thread has its own stdout. - * In theory threads could open stdout to different output drivers - * if syscalls.s supported different output write functions. - */ - stdout = fopen ("/debuguart", "w"); + /** + * Open a stdout file descriptor so that the thread has its own stdout. + * In theory threads could open stdout to different output drivers + * if syscalls.s supported different output write functions. + */ + stdout = fopen ("/debuguart", "w"); + setvbuf (stdout, 0, _IONBF, 0); /** * Enable interrupts - these will not be enabled when a thread