mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 11:22:44 +00:00
A hard fault occurs when the `sample_echo_packet` function attempts to print the average time per successful echo and no packets have been sent, resulting in a division by zero error. This fix adds a check to ensure that `packets_sent` is greater than 0 before performing the division. This prevents the system from halting due to a usage fault. Signed-off-by: Natalia Pluta <pluta.natalia.m@gmail.com> |
||
---|---|---|
.. | ||
capture | ||
cellular_modem | ||
cloud | ||
common | ||
dhcpv4_client | ||
dns_resolve | ||
dsa | ||
gptp | ||
ipv4_autoconf | ||
lldp | ||
lwm2m_client | ||
mdns_responder | ||
mqtt_publisher | ||
mqtt_sn_publisher | ||
openthread/coprocessor | ||
promiscuous_mode | ||
ptp | ||
secure_mqtt_sensor_actuator | ||
sockets | ||
stats | ||
syslog_net | ||
telnet | ||
tftp_client | ||
virtual | ||
vlan | ||
wifi | ||
wpan_serial | ||
wpanusb | ||
zperf | ||
net.rst |