From 7e4202ae46606be697611dd6f5f867c4915dc046 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 6 Jan 2010 12:55:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1506 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/Win32/console.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'os/hal/platforms/Win32') diff --git a/os/hal/platforms/Win32/console.c b/os/hal/platforms/Win32/console.c index 0c47ff491..7c6bd705d 100644 --- a/os/hal/platforms/Win32/console.c +++ b/os/hal/platforms/Win32/console.c @@ -47,9 +47,12 @@ BaseChannel CD1; static size_t writes(void *ip, const uint8_t *bp, size_t n) { + size_t ret; (void)ip; - return fwrite(bp, 1, n, stdout); + ret = fwrite(bp, 1, n, stdout); + fflush(stdout); + return ret; } static size_t reads(void *ip, uint8_t *bp, size_t n) { @@ -87,10 +90,13 @@ static msg_t gett(void *ip, systime_t time) { } static size_t writet(void *ip, const uint8_t *bp, size_t n, systime_t time) { + size_t ret; (void)ip; (void)time; - return fwrite(bp, 1, n, stdout); + ret = fwrite(bp, 1, n, stdout); + fflush(stdout); + return ret; } static size_t readt(void *ip, uint8_t *bp, size_t n, systime_t time) { -- cgit v1.2.3