mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-18 18:39:11 +08:00
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…
x
Reference in New Issue
Block a user