Skip to content

Commit

Permalink
modules/asmp: Fix mistake in return code of mpmq_trysend
Browse files Browse the repository at this point in the history
  • Loading branch information
SPRESENSE committed Jun 7, 2023
1 parent a2f70d4 commit b1d58b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sdk/modules/asmp/worker/mpmq.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,12 @@ int mpmq_trysend(mpmq_t *mq, int8_t msgid, uint32_t data)
m.proto = 0;
m.data = data;

return cpufifo_push(m.word);
if (cpufifo_push(m.word))
{
return -EAGAIN;
}

return OK;
}

/**
Expand Down

0 comments on commit b1d58b4

Please sign in to comment.