[components] [lwip]重新提交 : ping超时计算bug by Yohozzy · Pull Request #7545 · RT-Thread/rt-thread

and others added 4 commits

March 2, 2023 17:16
如果函数参数timeout为500,这里会被错误计算成500us,导致超时设置无效卡死
修复ping命令超时小于1s 无法超时退出的bug
函数的输入超时参数的单位是ms, 系统接口无论1.x版本还是2.x, 最终都会将毫秒时间再去转一次tick, 用于邮件接收超时.

所以此处直接按原值进行转换,不需要加入对RT_TICK_PER_SECOND的转换

Guozhanxin

Guozhanxin

@supperthomas supperthomas changed the title 重新提交 : ping超时计算bug [components] [lwip]重新提交 : ping超时计算bug

May 29, 2023

mysterywolf