Prevent the modulo operation causing a division by zero error by falling back to the minimal ACK timeout value if the random factor is 1.0. Also fall back to the same value if the random factor is erroneously smaller than 1.0. Additionally make the upper bound of the random range reachable. Signed-off-by: Adrian Friedli <adrian.friedli@husqvarnagroup.com> |
||
|---|---|---|
| .. | ||
| conn_mgr | ||
| ip | ||
| l2 | ||
| lib | ||
| pkt_filter | ||
| CMakeLists.txt | ||
| hostname.c | ||
| Kconfig | ||
| Kconfig.hostname | ||
| Kconfig.template.log_config.default.net | ||
| Kconfig.template.log_config.net | ||