File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments