[libc] dependence update: rt_device_write()/rt_console_get_device() need RT_USING_CONSOLE and RT_USING_DEVICE

This commit is contained in:
liang yongxiang 2018-07-17 16:52:54 +08:00
parent ec0e548973
commit a27144eb4e
1 changed files with 1 additions and 1 deletions

View File

@ -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