mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
fix specified network card not taking effect with msh's ping error (#8937)
* fix specified network card not taking effect with msh's ping error * fix specified network card not taking effect with msh's ping error
This commit is contained in:
@@ -1239,8 +1239,6 @@ int netdev_cmd_ping(char* target_name, char *netdev_name, rt_uint32_t times, rt_
|
||||
|
||||
if (!NETDEV_PING_IS_COMMONICABLE(netdev))
|
||||
{
|
||||
/* using first internet up status network interface device */
|
||||
netdev = netdev_get_first_by_flags(NETDEV_FLAG_LINK_UP);
|
||||
if (netdev == RT_NULL)
|
||||
{
|
||||
rt_kprintf("ping: not found available network interface device.\n");
|
||||
|
||||
Reference in New Issue
Block a user