Skip to content

Commit 61f1f69

Browse files
committed
Fixed the issue LOG_HEX no output at asyn mode.
1 parent 730a0bb commit 61f1f69

File tree

1 file changed

+7
-0
lines changed
  • components/utilities/ulog

1 file changed

+7
-0
lines changed

components/utilities/ulog/ulog.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,13 @@ void ulog_hexdump(const char *tag, rt_size_t width, rt_uint8_t *buf, rt_size_t s
753753
}
754754
#endif /* ULOG_USING_FILTER */
755755

756+
#ifdef ULOG_USING_ASYNC_OUTPUT
757+
if (ulog.async_rb == RT_NULL)
758+
{
759+
ulog.async_rb = rt_ringbuffer_create(ULOG_ASYNC_OUTPUT_BUF_SIZE);
760+
}
761+
#endif
762+
756763
/* get log buffer */
757764
log_buf = get_log_buf();
758765

0 commit comments

Comments
 (0)