diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c index 74ca5fd1f62033b17bebd5b0dbce4892af4f06ea..b9be26035734f7fdef0fc278efc0c46493851fda 100644 --- a/components/libc/compilers/armlibc/stubs.c +++ b/components/libc/compilers/armlibc/stubs.c @@ -189,7 +189,7 @@ int _sys_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode) if ((fh == STDOUT) || (fh == STDERR)) { -#ifndef RT_USING_CONSOLE +#if !defined(RT_USING_CONSOLE) || !defined(RT_USING_DEVICE) return 0; #else #ifdef RT_USING_POSIX