修复 mq_timedreceive 中 mq_timedreceive 为空时断言

This commit is contained in:
zhkag 2023-01-06 02:07:06 +00:00 committed by guo
parent 0c3a705482
commit a15a5b19a4
1 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ ssize_t mq_timedreceive(mqd_t mqdes,
return -1;
}
if (abs_timeout != RT_NULL)
tick = rt_timespec_to_tick(abs_timeout);
result = rt_mq_recv(mqdes->mq, msg_ptr, msg_len, tick);