Fix string comparison method
This commit is contained in:
parent
e43a938ec1
commit
f741ccb400
|
@ -236,7 +236,7 @@ int rt_hw_openamp_init(void)
|
||||||
|
|
||||||
rt_hw_openamp_register(&dev_openamp, "openamp", 0, NULL);
|
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);
|
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);
|
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);
|
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue