diff options
| author | chenyong <[email protected]> | 2019-09-25 20:08:53 +0800 |
|---|---|---|
| committer | chenyong <[email protected]> | 2019-09-25 20:14:39 +0800 |
| commit | 2b50d3d32c3d5b566a8d1b7bafd4277041abb0b1 (patch) | |
| tree | 094f46c79353b355d0a353d0aa18f21c99ef1cb2 /components/utilities | |
| parent | 676279421feba8832f926a2e96b5e7dc7fdb0652 (diff) | |
[components][finsh] Decouple RT_USING_DEVICE dependency for msh feature
Signed-off-by: chenyong <[email protected]>
Diffstat (limited to 'components/utilities')
| -rw-r--r-- | components/utilities/ulog/backend/console_be.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/utilities/ulog/backend/console_be.c b/components/utilities/ulog/backend/console_be.c index 04b0d91add..95dd547426 100644 --- a/components/utilities/ulog/backend/console_be.c +++ b/components/utilities/ulog/backend/console_be.c @@ -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); |
