summaryrefslogtreecommitdiff
path: root/components/net/netdev/src
diff options
context:
space:
mode:
authorluhuadong <[email protected]>2020-05-09 10:33:36 +0800
committerluhuadong <[email protected]>2020-05-09 10:33:36 +0800
commit88a02d7bd8fc32a81b5a60e1e27853a70bb9f62a (patch)
tree52535e98825a2d4c48c43a13c2032a8dfe4a4315 /components/net/netdev/src
parent6fb9824348fe9e1735b26c05e6e6de73348c04a1 (diff)
fixed some typos
Diffstat (limited to 'components/net/netdev/src')
-rw-r--r--components/net/netdev/src/netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/netdev/src/netdev.c b/components/net/netdev/src/netdev.c
index 68e5364a9e..aa43d8d3db 100644
--- a/components/net/netdev/src/netdev.c
+++ b/components/net/netdev/src/netdev.c
@@ -1087,7 +1087,7 @@ int netdev_cmd_ping(char* target_name, rt_uint32_t times, rt_size_t size)
}
}
- /* if the response time is more than NETDEV_PING_DELAY, no nead to delay */
+ /* if the response time is more than NETDEV_PING_DELAY, no need to delay */
delay_tick = ((rt_tick_get() - start_tick) > NETDEV_PING_DELAY) || (index == times) ? 0 : NETDEV_PING_DELAY;
rt_thread_delay(delay_tick);
}