Commit 11c33316 authored by Federico Vaga's avatar Federico Vaga

Merge branch 'bugfix-rmq-test'

parents 9b8b187f 2868d6fe
......@@ -5,9 +5,10 @@
static void send_pkt(int rmq, unsigned val)
{
struct trtl_fw_msg msg;
int err;
// queue full? wait
while (!mq_claim(TRTL_RMQ, rmq))
while (mq_claim(TRTL_RMQ, rmq) < 0)
;
mq_map_out_message(TRTL_RMQ, rmq, &msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment