Skip to content

Commit 2602f54

Browse files
authored
Merge pull request #4866 from xukaihub/master
[components][kernel] 解决多核下 finsh 不能响应串口输入问题
2 parents 10308a6 + c0e48f0 commit 2602f54

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/kservice.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,11 +1176,7 @@ void rt_kputs(const char *str)
11761176
}
11771177
else
11781178
{
1179-
rt_uint16_t old_flag = _console_device->open_flag;
1180-
1181-
_console_device->open_flag |= RT_DEVICE_FLAG_STREAM;
11821179
rt_device_write(_console_device, 0, str, rt_strlen(str));
1183-
_console_device->open_flag = old_flag;
11841180
}
11851181
#else
11861182
rt_hw_console_output(str);
@@ -1214,11 +1210,7 @@ RT_WEAK void rt_kprintf(const char *fmt, ...)
12141210
}
12151211
else
12161212
{
1217-
rt_uint16_t old_flag = _console_device->open_flag;
1218-
1219-
_console_device->open_flag |= RT_DEVICE_FLAG_STREAM;
12201213
rt_device_write(_console_device, 0, rt_log_buf, length);
1221-
_console_device->open_flag = old_flag;
12221214
}
12231215
#else
12241216
rt_hw_console_output(rt_log_buf);

0 commit comments

Comments
 (0)