提交 6e63cbb9 编写于 作者: B bernard

[DFS] "console" device check.

[DFS] To make sure the "console" device exist or not when initialize
console device.
上级 a453b331
......@@ -78,6 +78,9 @@ void rt_console_init(const char* device_name)
rt_device_t device;
/* register to device framework */
device = rt_device_find("console");
if (device) return; /* not register a same name device */
device = rt_device_find(device_name);
if (device != RT_NULL)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册