提交 f741ccb4 编写于 作者: C cy023 提交者: mysterywolf

Fix string comparison method

上级 e43a938e
......@@ -236,7 +236,7 @@ int rt_hw_openamp_init(void)
rt_hw_openamp_register(&dev_openamp, "openamp", 0, NULL);
if (RT_CONSOLE_DEVICE_NAME == "openamp")
if (rt_strcmp(RT_CONSOLE_DEVICE_NAME, "openamp") == 0)
{
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
}
......
......@@ -236,7 +236,7 @@ int rt_hw_openamp_init(void)
rt_hw_openamp_register(&dev_openamp, "openamp", 0, NULL);
if (RT_CONSOLE_DEVICE_NAME == "openamp")
if (rt_strcmp(RT_CONSOLE_DEVICE_NAME, "openamp") == 0)
{
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册