diff options
| author | xiao-mang <[email protected]> | 2024-05-16 15:43:50 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-16 15:43:50 +0800 |
| commit | e46333496f880afe7ae2864967406f758aec55a7 (patch) | |
| tree | 130237cf25437bfcae047540610be360b2462fd0 | |
| parent | ed002bb84afdbacc3a108e25823f72b710188512 (diff) | |
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
| -rw-r--r-- | bsp/nxp/imx/imx6ull-smart/drivers/board.c | 2 | ||||
| -rw-r--r-- | components/net/netdev/src/netdev.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bsp/nxp/imx/imx6ull-smart/drivers/board.c b/bsp/nxp/imx/imx6ull-smart/drivers/board.c index d95362c591..a1af47fc3e 100644 --- a/bsp/nxp/imx/imx6ull-smart/drivers/board.c +++ b/bsp/nxp/imx/imx6ull-smart/drivers/board.c @@ -133,5 +133,7 @@ void rt_hw_board_init(void) rt_console_set_device(RT_CONSOLE_DEVICE_NAME); rt_thread_idle_sethook(idle_wfi); +#ifdef RT_DEBUGING_ASSERT rt_assert_set_hook(assert_handler); +#endif } diff --git a/components/net/netdev/src/netdev.c b/components/net/netdev/src/netdev.c index 8bc6e6bcca..e6398cf02e 100644 --- a/components/net/netdev/src/netdev.c +++ b/components/net/netdev/src/netdev.c @@ -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"); |
