Files
rt-thread/components/net
Zhaoqi Xu 8ec9d87959 [components][netdev] fix divide-by-zero in ping statistics when no reply
netdev_cmd_ping() computed avg_time / received before checking that any
reply arrived. When every request times out, received is 0 and the
integer division traps (SIGFPE on the simulator, a fault on Cortex-M),
taking the shell thread down. Only compute the average inside the
existing received > 0 branch where it is printed.

Fixes #11852
2026-10-14 09:33:19 +08:00
..