[components][finsh] Decouple RT_USING_DEVICE dependency for msh feature

Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
chenyong
2019-09-25 20:08:53 +08:00
parent 676279421f
commit 2b50d3d32c
8 changed files with 328 additions and 351 deletions

View File

@@ -22,9 +22,9 @@ static struct ulog_backend console;
void ulog_console_backend_output(struct ulog_backend *backend, rt_uint32_t level, const char *tag, rt_bool_t is_raw,
const char *log, size_t len)
{
#ifdef RT_USING_DEVICE
rt_device_t dev = rt_console_get_device();
#ifdef RT_USING_DEVICE
if (dev == RT_NULL)
{
rt_hw_console_output(log);