Browse Source

Merge pull request #1639 from liangyongxiang/console-device

[libc] dependence update:
Bernard Xiong 6 năm trước cách đây
mục cha
commit
41c27cce5e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      components/libc/compilers/armlibc/stubs.c

+ 1 - 1
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