mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-27 15:24:11 +08:00
[tty] change driver of tty to device and code cleanup. (#7444)
This commit is contained in:
+1
-2
@@ -1370,8 +1370,7 @@ rt_device_t rt_console_set_device(const char *name)
|
||||
{
|
||||
#ifdef RT_USING_SMART
|
||||
rt_device_t new_iodev = RT_NULL, old_iodev = RT_NULL;
|
||||
extern void console_init();
|
||||
console_init(); /*add line discipline*/
|
||||
|
||||
/* find new console device */
|
||||
new_iodev = rt_device_find(name);
|
||||
if (new_iodev != RT_NULL)
|
||||
|
||||
Reference in New Issue
Block a user