mirror of
https://github.com/commaai/msgq.git
synced 2026-06-11 23:44:58 +08:00
fix blocking msgq poll (#64)
* remove unnecessary condition on msqg poll * fix blocking msgq poll
This commit is contained in:
@@ -429,8 +429,6 @@ int msgq_msg_recv(msgq_msg_t * msg, msgq_queue_t * q){
|
||||
|
||||
|
||||
int msgq_poll(msgq_pollitem_t * items, size_t nitems, int timeout){
|
||||
assert(timeout >= 0);
|
||||
|
||||
int num = 0;
|
||||
|
||||
// Check if messages ready
|
||||
|
||||
Reference in New Issue
Block a user