summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorz14git <[email protected]>2020-01-21 16:38:07 +0800
committerz14git <[email protected]>2020-01-21 16:38:07 +0800
commit50c2af5eeaa10b776e19d47d55671495c4a82fbb (patch)
tree1648ffa5e62b9e8f42c7a4c4534be53567047576 /components/drivers
parent1499844699f6d8e3ce7c5720e6f88e6ce9691b6d (diff)
[serial.c] 修复在没有开启ulog时,警告日志不会输出的问题
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/serial/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/serial/serial.c b/components/drivers/serial/serial.c
index 48cf95073d..d1c04dec6f 100644
--- a/components/drivers/serial/serial.c
+++ b/components/drivers/serial/serial.c
@@ -333,7 +333,7 @@ static void _serial_check_buffer_size(void)
if (already_output == RT_FALSE)
{
-#if defined(ULOG_USING_ISR_LOG)
+#if !defined(RT_USING_ULOG) || defined(ULOG_USING_ISR_LOG)
LOG_W("Warning: There is no enough buffer for saving data,"
" please increase the RT_SERIAL_RB_BUFSZ option.");
#endif