diff --git a/components/libc/armlibc/stubs.c b/components/libc/armlibc/stubs.c index ea42777a08deb97008c9654c17b385556bca97c7..cb651b66faed202423508e181245c61658295e8d 100644 --- a/components/libc/armlibc/stubs.c +++ b/components/libc/armlibc/stubs.c @@ -224,10 +224,12 @@ char *_sys_command_string(char *cmd, int len) /* This function writes a character to the console. */ void _ttywrch(int ch) { +#ifdef RT_USING_CONSOLE char c; c = (char)ch; rt_kprintf(&c); +#endif } void _sys_exit(int return_code)