summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-05-16 13:50:44 +0800
committerGitHub <[email protected]>2019-05-16 13:50:44 +0800
commit9e8c5033df7f80e41e37e47fa24310f01b3d8a86 (patch)
treec37a56a63e0e17da954b3f7e6a1ec49de3719879
parentb7a6cc42de0774225bb7f89b6aaf01d64833e980 (diff)
parent11b0c65921c7670fb577865d7b0646827554be4a (diff)
Merge pull request #2694 from armink/fix_ulog
[components][ulog] Make the asynchronous log output more timely.
-rw-r--r--components/utilities/ulog/ulog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c
index 36d5ac275f..9af5fe5b9d 100644
--- a/components/utilities/ulog/ulog.c
+++ b/components/utilities/ulog/ulog.c
@@ -1187,6 +1187,8 @@ void ulog_async_waiting_log(rt_int32_t time)
static void async_output_thread_entry(void *param)
{
+ ulog_async_output();
+
while (1)
{
ulog_async_waiting_log(RT_WAITING_FOREVER);