Skip to content

Commit 82c4a9a

Browse files
authored
Update rtdbg.h
暂缓出中断后重入造成的打印乱码
1 parent b0b40ed commit 82c4a9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/rtdbg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ extern "C" {
116116
#define dbg_log_line(lvl, color_n, fmt, ...) \
117117
do \
118118
{ \
119+
rt_kprintf("\r"); \
120+
rt_kprintf("\r"); \
119121
_DBG_LOG_HDR(lvl, color_n); \
120122
rt_kprintf(fmt, ##__VA_ARGS__); \
121123
_DBG_LOG_X_END; \

0 commit comments

Comments
 (0)