Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
244aa3cb
Commit
244aa3cb
authored
May 08, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:fw: discard messages on dispatch error
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
4b3f1d5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mockturtle-framework.c
software/firmware/framework/mockturtle-framework.c
+4
-1
No files found.
software/firmware/framework/mockturtle-framework.c
View file @
244aa3cb
...
...
@@ -339,6 +339,8 @@ static inline int rt_action_run(enum trtl_mq_type type,
* @param[in] type MQ type
* @param[in] idx_mq MQ index
* @return 0 on success. -1 on error
*
* If the message is not acceptable, this function will discard it.
*/
int
trtl_fw_mq_action_dispatch
(
enum
trtl_mq_type
type
,
unsigned
int
idx_mq
)
{
...
...
@@ -358,7 +360,8 @@ int trtl_fw_mq_action_dispatch(enum trtl_mq_type type, unsigned int idx_mq)
trtl_fw_print_message
(
&
msg
);
if
(
!
(
msg
.
header
->
flags
&
TRTL_HMQ_HEADER_FLAG_RPC
))
{
return
-
EINVAL
;
err
=
-
EINVAL
;
goto
out
;
}
if
(
msg
.
header
->
rt_app_id
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment