diff options
| author | Bernard Xiong <[email protected]> | 2019-09-28 12:32:01 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-28 12:32:01 +0800 |
| commit | 88ad2398e9d2a42da34ed57e2fbc6c53100339f7 (patch) | |
| tree | f3a5d1a23a32670cdbd344b6eb4afd19671a0b3b /components/utilities | |
| parent | 2a39e590244cc0a8501669e409c5b07fa4d33176 (diff) | |
| parent | 74793a53fdaf0c600677db5b24c0df98f1bc8a0f (diff) | |
Merge pull request #3102 from Lawlieta/develop
[components][finsh] Decouple RT_USING_DEVICE dependency for msh feature
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); |
