Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
humanoides
tools
stm32_libraries
Commits
a817bc34
Commit
a817bc34
authored
Apr 03, 2020
by
Sergi Hernandez
Browse files
Solved a bug in the comm_receive function: it returned succes when there was a timeout error.
parent
cbc6cc15
Changes
1
Hide whitespace changes
Inline
Side-by-side
comm/src/comm.c
View file @
a817bc34
...
...
@@ -126,6 +126,8 @@ comm_error comm_receive(TComm *dev,unsigned char *data,unsigned short int *lengt
comm_cancel_dma_receive
(
dev
);
else
comm_cancel_irq_receive
(
dev
);
*
length
=
0
;
return
error
;
}
}
// get the received data
...
...
Write
Preview
Supports
Markdown
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