Skip to content

Commit e463334

Browse files
authored
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
1 parent ed002bb commit e463334

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bsp/nxp/imx/imx6ull-smart/drivers/board.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,7 @@ void rt_hw_board_init(void)
133133
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
134134

135135
rt_thread_idle_sethook(idle_wfi);
136+
#ifdef RT_DEBUGING_ASSERT
136137
rt_assert_set_hook(assert_handler);
138+
#endif
137139
}

components/net/netdev/src/netdev.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,8 +1239,6 @@ int netdev_cmd_ping(char* target_name, char *netdev_name, rt_uint32_t times, rt_
12391239

12401240
if (!NETDEV_PING_IS_COMMONICABLE(netdev))
12411241
{
1242-
/* using first internet up status network interface device */
1243-
netdev = netdev_get_first_by_flags(NETDEV_FLAG_LINK_UP);
12441242
if (netdev == RT_NULL)
12451243
{
12461244
rt_kprintf("ping: not found available network interface device.\n");

0 commit comments

Comments
 (0)