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
labrobotica
drivers
asterx1_gps
Commits
a58ca46a
Commit
a58ca46a
authored
Mar 18, 2016
by
Sergi Hernandez
Browse files
Solved a bug with a blocked mutex when waiting a replay from the GPS.
parent
b353344b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/asterx1_gps.cpp
View file @
a58ca46a
...
...
@@ -1216,7 +1216,9 @@ void CasteRx1::send_command(const std::string &cmd)
try
{
this
->
gps_access
.
enter
();
this
->
serial_port
->
write
((
unsigned
char
*
)
cmd
.
c_str
(),
cmd
.
size
());
this
->
gps_access
.
exit
();
this
->
event_server
->
wait_all
(
events
,
500
);
this
->
gps_access
.
enter
();
// compare the answer with the command
reply
=
this
->
reply_queue
.
front
();
// get the reply
this
->
reply_queue
.
pop
();
// remove it from the queue
...
...
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